Registry Voodoo

Here are some Windows Registry hacks...

You can copy the text and save as Ascii (use .reg for extension)
or you can download any file you're interested in.

Contents

Register & Unregister DLL files
Register & Unregister OCX files
Add Notepad to context menu of .HTM & .HTML files
Add Notepad to VB file context menus
Add Quickview to context menu of .ASP, .HTM & .HTML files


   Register & Unregister DLL files.
REGEDIT4

[HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\Register]

[HKEY_CLASSES_ROOT\dllfile\shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister]

[HKEY_CLASSES_ROOT\dllfile\shell\Unregister\command]
@="regsvr32.exe /u \"%1\""

[assumes that regsvr32.exe is in the path...if not, edit the .REG file and specify the full path]

Top


   Register & Unregister OCX files.
REGEDIT4

[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"

[HKEY_CLASSES_ROOT\ocxfile]
@="Control"
"EditFlags"=hex:00,00,00,00

[HKEY_CLASSES_ROOT\ocxfile\DefaultIcon]
@="%SystemRoot%\\system32\\SHELL32.dll,21"

[HKEY_CLASSES_ROOT\ocxfile\Shell]
@=""

[HKEY_CLASSES_ROOT\ocxfile\shell\Register]

[HKEY_CLASSES_ROOT\ocxfile\shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister]

[HKEY_CLASSES_ROOT\ocxfile\shell\Unregister\command]
@="regsvr32.exe /u \"%1\""
Adds an OCX File Type first, then adds the Regiser & Unregister shell commands.
[assumes that regsvr32.exe is in the path...if not, edit the .REG file and specify the full path]

Top


   Add Notepad to context menu of .HTM & .HTML files
REGEDIT4

[HKEY_CLASSES_ROOT\htmlfile\shell\Notepad\command]
@="notepad.exe \"%1\""

Top
   Add Notepad to VB file context menus
REGEDIT4

[HKEY_CLASSES_ROOT\VisualBasic.ClassModule]
@="VB Class"

[HKEY_CLASSES_ROOT\VisualBasic.ClassModule\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.ClassModule\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.CTXFile]
@="VB Control Binary"

[HKEY_CLASSES_ROOT\VisualBasic.Designer]
@="VB Designer"

[HKEY_CLASSES_ROOT\VisualBasic.Designer\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.Designer\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.DOXFile]
@="VB User Doc Binary"

[HKEY_CLASSES_ROOT\VisualBasic.DSCFile]
@="VB Designer Binary"

[HKEY_CLASSES_ROOT\VisualBasic.Form]
@="VB Form"

[HKEY_CLASSES_ROOT\VisualBasic.Form\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.Form\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.FRXFile]
@="VB Form Binary"

[HKEY_CLASSES_ROOT\VisualBasic.Module]
@="VB Module"

[HKEY_CLASSES_ROOT\VisualBasic.Module\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.Module\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.PGXFile]
@="VB Property Page Binary"

[HKEY_CLASSES_ROOT\VisualBasic.Project]
@="VB Project"

[HKEY_CLASSES_ROOT\VisualBasic.Project\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.Project\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.ProjectGroup]
@="VB Group"

[HKEY_CLASSES_ROOT\VisualBasic.ProjectGroup\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.ProjectGroup\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.PropertyPage]
@="VB Property Page"

[HKEY_CLASSES_ROOT\VisualBasic.PropertyPage\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.PropertyPage\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.UserControl]
@="VB Control"

[HKEY_CLASSES_ROOT\VisualBasic.UserControl\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.UserControl\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.UserDocument]
@="VB Document"

[HKEY_CLASSES_ROOT\VisualBasic.UserDocument\shell\Notepad]

[HKEY_CLASSES_ROOT\VisualBasic.UserDocument\shell\Notepad\command]
@="notepad.exe \"%1\""

[HKEY_CLASSES_ROOT\VisualBasic.VBLFile]
@="VB License"

Top
   Add Quickview to context menu of .ASP, .HTM & .HTML files.
REGEDIT4

[HKEY_CLASSES_ROOT\QuickView\.asp\{F0F08735-0C36-101B-B086-0020AF07D0F4}]
@="SCC Quick Viewer"

[HKEY_CLASSES_ROOT\QuickView\.htm\{F0F08735-0C36-101B-B086-0020AF07D0F4}]
@="SCC Quick Viewer"

[HKEY_CLASSES_ROOT\QuickView\.html\{F0F08735-0C36-101B-B086-0020AF07D0F4}]
@="SCC Quick Viewer"

Top