August 31, 2004

Extending explorer context menu

Copy-paste code in notepad & save as .reg file. Finally run the file to update registry.

Register/unregister dll

Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"
[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"
[HKEY_CLASSES_ROOT\dllfile\Shell\Register dll\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister dll\command]
@="regsvr32.exe /u \"%1\""


Register/unregister ocx 
Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"
[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"
[HKEY_CLASSES_ROOT\ocxfile\Shell\Register ocx\command]
@="regsvr32.exe \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister ocx\command]
@="regsvr32.exe /u \"%1\""



Open With Notepad

Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\*\shell]
@="\"notepad.exe %1\""
[HKEY_CLASSES_ROOT\*\shell\open]
@="Open &With Notepad"
[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"