How to create a CLSID to open files or folder from different location

Now you can open files, folders form different location such as My Computer, Control panel, Context menu. By creating CLSID form windows registry, you can create your own CLSID to lunch file and folder form different location(special folders).


1.Open Registry Editor

Open run command ( windows key + r ).
Type regedit to open Registry Editor.

2. Creating class ID

Before creating CLSID you must have to conform that the CLSID is not in the registry. If CLSID is not there means you can create your own CLSID in windows system. , if you find the same CLSID then change it to another name.

Ex: Assume that you’re going to create CLSID “{00000000-0000-0000-0000-000000000001}”.

    
Windows Registry Editor Version 5.00

;explorer.exe /n,/e,/root,C:\\MDSN or c:\\MDSN.txt 

;if you using exe file to open C:\\MDSN.exe

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}]
@="Name"
"InfoTip"="Files and Folders"

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\DefaultIcon]
@="shell32.dll,7"

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\InProcServer32]
@="shell32.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\Shell]

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\Shell\Open]

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\Shell\Open\Command]
@="msg * Its working"


;MyComputer
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{00000000-0000-0000-0000-000000000001}]


;ControlPanel
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{00000000-0000-0000-0000-000000000001}]


;Desktop
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{00000000-0000-0000-0000-000000000001}]
    

Download CLSID.reg.zip

3. Add file or folder to CLSID

Using registry editor if you want to change the name of the CLSID then Navigate to
  
HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}
Edit value name: (Default)= Any Name
After that Navigate to
  
HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000001}\Shell\Open\Command

Edit value name: (Default)
for File(Default) =C:\Program Files (x86)\MDSN Welcome\MDSN Welcome.exe
[you can add any type of file Ex: .txt,.doc,etc..,]
for Folder(Default) =explorer.exe /n,/e,/root,C:\MDSN

4.Open file or folder for special folders like MyComputer or ControlPanel

For an Ex if you want to add it to my computer then in CLSID.reg file
Navigate to ; MyComputer ;[HKEY_LOCAL_MACHINE\SO...
(Remove the “; - semicolon” from [HKEY_LOCAL_MACHINE\SO ...)
Save and install CLSID.reg file.

5.Opening form context menu

Follow step 4 to add file or folder to open form context menu
For Desktop only


Windows Registry Editor Version 5.00

;explorer.exe /n,/e,/root,C:\\MDSN or c:\\MDSN.txt

;if you using exe file to open C:\\MDSN.exe

;For Desktop only

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\For Desktop only]
"icon"="shell32.dll,7"
@="For Desktop only"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\For Desktop only\command]
@="msg * Its working"
Download For Desktop only.reg.zip

For all Directorys(Folders)and Desktop

Windows Registry Editor Version 5.00

;explorer.exe /n,/e,/root,C:\\MDSN or c:\\MDSN.txt 

;if you using exe file to open C:\\MDSN.exe

;For all Directorys(Folders)and Desktop

[HKEY_CLASSES_ROOT\Directory\Background\shell\For Folders and Desktop]
"icon"="shell32.dll,7"
@="For Folders and Desktop"

[HKEY_CLASSES_ROOT\Directory\Background\shell\For Folders and Desktop\command]
@="msg * Its working"
Download For all Directorys ( Folders ) and Desktop.reg.zip

Tips & Warnings

  1. Create System restore point because if anything goes wrong then you can restore your system.
  2. If you want to delete the created CLSID then just delete CLSID.( Delete only you created value's because if you delete anything else form registry means it will damage your system.


Video