Protecting A 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.
To attach an application with your folder:
Well, you can attach any application with your folder. Even the System services like My Computer or Recycle bin. Just you will have to create a batch file and write
"ren abc abc.{FB0C9C8A-6C50-11D1-9F1D-0000F8757FCD}" to make it behave like Scanners and Faxes. This trick will be applicable to any of the folders or files.
To unprotect, you will need to write
"ren abc.{FB0C9C8A-6C50-11D1-9F1D-0000F8757FCD} abc". Where abc is the folder name. I am giving some of the CLSID. Try them and get your work done easily….
"{7007ACC7-3202-11D1-AAD2-00805FC1270E}"="Network Connections"
"{992CFFA0-F557-101A-88EC-00DD010CCC48}"="Network Connections"
"{E211B736-43FD-11D1-9EFB-0000F8757FCD}"="Scanners & Cameras"
"{FB0C9C8A-6C50-11D1-9F1D-0000F8757FCD}"="Scanners & Cameras"
"{905667aa-acd6-11d2-8080-00805f6596d2}"="Scanners & Cameras"
"{3F953603-1008-4f6e-A73A-04AAC7A992F1}"="Scanners & Cameras"
"{83bbcbf3-b28a-4919-a5aa-73027445d672}"="Scanners & Cameras"
"{D6277990-4C6A-11CF-8D87-00AA0060F5BF}"="Scheduled Tasks"
"{0DF44EAA-FF21-4412-828E-260A8728E7F1}"="Taskbar and Start Menu"
"{2559a1f1-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{D20EA4E1-3957-11d2-A40B-0C5020524153}"="Administrative Tools"
"{7A9D77BD-5403-11d2-8785-2E0420524153}"="User Accounts"
"{32714800-2E5F-11d0-8B85-00AA0044F941}"="For &People…"
"{5464D816-CF16-4784-B9F3-75C0DB52B499}"="Yahoo! Mail"
"{B41DB860-8EE4-11D2-9906-E49FADC173CA}"="WinRAR shell extension"
"{BDEADF00-C265-11D0-BCED-00A0C90AB50F}"="Web Folders"
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s