Click here to Skip to main content
15,908,768 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
hi ,

i need code of make the :: Make Folder Inaccessible and Undeletable




tHanX
Posted
Updated 9-Dec-11 8:03am
v2
Comments
Sergey Alexandrovich Kryukov 9-Dec-11 14:03pm    
Forever or just during the session of your application?
Inaccessible should mean accessible for some, so what access do you need?
--SA
Abhinav Gauniyal 29-Sep-13 17:26pm    
Do you mean to hide the folder or what?

That's kinda pointless. If it's not accessible, what good is it? You can restrict permissions ona user-by-user (or group) basis, but this will only work on a system where only the system administrator can access it, and the current logged in user is NOT that administrator.
 
Share this answer
 
Comments
ayad0net 9-Dec-11 14:10pm    
thank you;
i need the methode to create autorun.inf in usb flash and protect it from virus
Dave Kreskowiak 29-Sep-13 11:26am    
You can't. It's that simple. There is no way to protect the contents of the USB flash drive from viruses unless the host system you plug it into already has a virus scanner installed and running.
Have a look at this link Directory.SetAccessControl
 
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