Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a requirement to implement a feature ( by C#) to lock a folder on USB. After locking, in any PC without my software, this folder is inaccessible (or better invisible). I have tried using ACL (Access Control List) but it does not work on usb.

MY original requirement is that "Do not allow people seeing the content of a folder on usb without my software. When user logs in my software, this folder is accessible and when user logs out, my software has to do something to make sure this folder being inaccessible in other PCs". This leads me to think about locking the usb folder.

I already tried a work around to zip the folder (not compress) with a password but zipping takes time (about 2 minutes for 1 Gb). So if I have a big data (100 GB) it is too long to process (The software has to process this when doing logging out).

Please advise me a solution.

Thanks,
Posted

If you want to go the ACL route, you will need to format your USB device with NTFS, rather than the default FAT.
 
Share this answer
 
Thanks Peter,

I tried format my USB with NTFS, but it does not work on usb too

Regards,
Viet
 
Share this answer
 
Comments
Peter_in_2780 24-Aug-10 1:49am    
Did you try THIS way? http://www.ntfs.com/quest22.htm

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