Click here to Skip to main content
14,644,614 members
Rate this:
Please Sign up or sign in to 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

If you want to go the ACL route, you will need to format your USB device with NTFS, rather than the default FAT.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Thanks Peter,

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

Regards,
Viet
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100