Friday, July 2, 2010

How to lock a folder using Notepad?


If suppose you want to lock a folder named SA in your D:\ , whose path is D:\SA
Now open the Notepad and type the following

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

Where SA is your folder name. Save the text file as lock.bat in the same drive.

Open another new notepad text file and type the following

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

Save the text file as key.bat in the same drive.
Now:

To lock the SA folder, simply click the lock.bat and it will transform into control panel icon which is inaccessible.
To unlock the folder click the key.bat file. Thus the folder will be unlocked and the contents are accessible.

No comments:

Post a Comment