Your Ad Here

Tuesday, November 27, 2007

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....
CLSID
"{85BBD920-42A0-1069-A2E4-08002B30309D}"="Briefcase"
"{BD84B380-8CA2-1069-AB1D-08000948F534}"="Fonts"
"{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"
"{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0}"="Search"
"{2559a1f1-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}"="Help and Support"
"{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}"="Run..."
"{2559a1f4-21d7-11d4-bdaf-00c04f60b9f0}"="Internet"
"{2559a1f5-21d7-11d4-bdaf-00c04f60b9f0}"="E-mail"
"{D20EA4E1-3957-11d2-A40B-0C5020524152}"="Fonts"
"{D20EA4E1-3957-11d2-A40B-0C5020524153}"="Administrative Tools"
"{01E04581-4EEE-11d0-BFE9-00AA005B4383}"="&Address"
"{FF393560-C2A7-11CF-BFF4-444553540000}"="History"
"{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"
"{F2CF5485-4E02-4f68-819C-B92DE9277049}"="&Links"
"{416651E4-9C3C-11D9-8BDE-F66BAD1E3F3A}"="PhoneBrowser"


Read More...

[Source: Hidden Tricks of Windows - Posted by Kishore Vengala]
Your Ad Here

No comments: