Wednesday, July 1, 2009

Protecting A folder in Windows XP




let us create a folder named "abc" (without quotes). Now, you need to assign something to this folder so that it could be disallowed to open... Just there is a CLSID to do that.
open notepad and write

"ren abc abc.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}" without quotes.

Save the file with ".bat" extension. Let us save it as protect.bat (This is the extension of batch files) in the same location where the folder in so that it can be directly be called upon. I mean to say you need to create the batch file in the parent directory of abc. Double click on the file and your folder will be locked.

To unprotect it just change the line to this:

"ren abc.{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} abc"
You will have to change the folder name in place of abc. Thats all.

No comments:

Post a Comment