Thursday, 29 December 2011

Lock Folder



1.Create a batch file (.bat) using notepad with the following text:

{Suppose the name of the folder which you want to lock is "movies".}
_____________________________________________

ren movies movies.{21EC2020-3AEA-1069-A2DD-08002B30309D}
_____________________________________________

{Replace "movies" with the name of the folder which you want to lock}

2.Save it by the name "lock.bat" in the Folder or Drive in which the folder you want to lock is located. Eg: If the required folder is located in D: drive then save this file in the D: drive.

3.Create another batch file with the following text:
_____________________________________________


ren movies.{21EC2020-3AEA-1069-A2DD-08002B30309D} movies
_____________________________________________


4.Save this file as "key.bat" in the Folder or Drive in which the folder you want to lock is located.

5.Run 'lock' file and the folder 'movies' will change to 'control panel' and you cannot view its contents. Run 'key' file and you will get back your original folder.

No comments:

Post a Comment