Lock Folders in Windows

Status
Not open for further replies.

Osiris

Golden Master
Messages
36,817
Location
Kentucky
Windows has no obvious method to lock folders, even administrators have no obvious way of locking folders. Locking folders could be important if you want to hide certain files or folders to prevent someone else from seeing them or altering the contents. You never know what your children could do until they do, so better lock the important folders.

Locking folders can be easily done with just two batch files that protects the contents. This is no fool proof method of course and everyone who is computer savy is able to counter this. You need to create two textfiles, add one line of code to each and save them as .bat files to make them executable.


Add the following line to the first text file ren xxxx xxxx.{21EC2020-3AEA-1069-A2DD-08002B30309D} .Replace xxxx with the folder or drive name and save the file with the extension .bat, name it protect.bat for instance.

Now add the following line to the second text file and rename it unlock.bat. ren xxxx.{21EC2020-3AEA-1069-A2DD-08002B30309D} xxxx. Replace xxxx again with the orginal name of the folder.

To lock a folder just click on protect.bat, to unlock it again click unlock.bat

http://tech-buzz.net/2007/02/04/lock-your-drives-and-folders-using-registry-tweaks/
 
Status
Not open for further replies.
Back
Top Bottom