Click here to Skip to main content
15,941,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i delete the read only Folder and Sub folders And the files of contains through coding.
My folder Location : C:\Program Files\TechnoAid Software\Municipality Setup\Del

Above Del Folder locate to C:\Program Files\TechnoAid Software\Municipality Setup
But there are a lot of Folder & Sub folders & files of contains.

How can i solve this problem????
Please supply to coding.....
fjdiewornncalwe 12-Oct-11 8:30am    
Just a note: We don't "supply to coding". We are not being paid to do your work for you to take credit for. You must make the attempt and we will help you with issues arising from your effort. Cheers.

1 solution

You don't. Users don't have access to write (or delete) anything under Program Files under Win Vista and 7.

You have to redesign your application to put user specific files in more appropriate locations. What that is depends on what you're doing, whether those are per-machine or per-user files, roaming profile support, ...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900