Windows Vista - http://www.vistaarticles.com
Advanced User Tweaks
http://www.vistaarticles.com/articles/43/1/Advanced-User-Tweaks
By 
Published on 12/21/2005
 
The following are some tweaks that can improve the user experience in Vista by creating easy access to commands and common tasks.

Advanced User Tweaks

1) This tweak will add register/unregister dll to the explorer context menu; this command will run regsvr32.exe on any selected dll file - open Notepad, and copy the following code into the window:

Code:
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\""


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files' and that you call the file RegDll.reg or "something similar" .reg To apply the registry change right click on the .reg file and click ‘Merge’. This change does not require a restart.

2) This tweak will add register/unregister ocx to the explorer context menu; this command will run regsvr32.exe on any selected ocx file - open Notepad and copy the following code into the window:

Code:
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\""


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file RegOcx.reg or "something similar" .reg To apply the registry change right click on the .reg file and click ‘Merge’. This change does not require a restart.

3) This tweak will add an ‘Open With Notepad’ entry to the context menu in explorer to open any file with notepad (*Note – you should not attempt to open any large file in notepad as it may lock up Vista, or take a very long time to load) - open Notepad and copy the following code into the window:

Code:
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"


Save the file to your Desktop, using the 'Save as' dialogue, making sure you choose 'All files', and that you call the file OpenWithNotepad.reg or "something similar" .reg To apply the registry change, right click on the .reg file and click ‘Merge'. This change does not require a restart.