Your Ad Here

Monday, February 25, 2008

Protecting the Folder in Windows XP

Protecting the Folder in Windows XP...

I have just told you about CLSID. Its true that microsoft named all its COM objects with a
unique CLSID. This ID is responsible for any behaviorial instinct in your file system. So
the trick is very simple. IF we could somehow apply this trick to change the behaviour of a
folder created by you with some system defined ones, our job will be over.
To do this 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: