Friday, February 29, 2008

Protecting A folder in Windows XP

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"

1 comment:

Anonymous said...

Its Gud Work Done Dude Keep d Work on



Rohit