Wednesday, August 19, 2009

Class Identifier of folders in XP

The batch file basically renames the folder with name abc to abc.{21EC2020-3AEA-1069-A2DD-08002B30309D}. So instead of writing a batch file you can directly rename a folder by appending given number.

The numbers specified after the folder name is actually CLSID (Class Identifier) of folder and the number in particular used here is GUID for Control Panel. That’s why when you try to open the folder after renaming, it opens the Control Panel. Also the icon is also of Control panel. Some other similar CLSIDs that can be used are:

.{450D8FBA-AD25-11D0-98A8-0800361B1103} - My Documents
.{20D04FE0-3AEA-1069-A2D8-08002B30309D} - My Computer
.{2227A280-3AEA-1069-A2DE-08002B30309D} - Printers
.{645FF040-5081-101B-9F08-00AA002F954E} - Recycle Bin
.{FBF23B42-E3F0-101B-8488-00AA003E56F8} - Internet Explorer
.{FF393560-C2A7-11CF-BFF4-444553540000} - History

And there are many more. You can find more CLSIDs under [HKEY_CLASSES_ROOT\CLSID\], including the above specified CLSIDs.

Though the folders are not included in the search, but you can still get the details of files and folders inside it. Suppose you folder was abc and you renamed it to abc.{21EC2020-3AEA-1069-A2DD-08002B30309D}. And consider the folder is present in C drive. Go to comand prompt, at c drive and try dir command

c:\>dir

It will display all the folders in current directory including you folder with name abc.{21EC2020-3AEA-1069-A2DD-08002B30309D} not just abc. Now try

c:\>cd abc.{21EC2020-3AEA-1069-A2DD-08002B30309D}
c>\abc.{21EC2020-3AEA-1069-A2DD-08002B30309D}>dir

It will list all the files and directory present under that folder.

No comments:

Post a Comment