Open Windows Registry at Specific Key

Ever needed to jump to a specific registry key? Regedit doesn’t allow you to do this natively; when launched, regedit uses the last open location to go to. So you could set that entry with reg in a batch script, windows shell script, or some other form and then run regedit but it’s quicker with Microsoft’s ‘regjump’ tool from Sysinternals. Here’s an example VBscript that will prompt you for the path you want to go to and it set’s the last used key and executes regedit.

Set WshShell = CreateObject(“WScript.Shell”) Dim JumpToKey JumpToKey=Inputbox(“Which registry key would you like to open?”) WshShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionAppletsRegeditLastkey”,JumpToKey,“REG_SZ” WshShell.Run “regedit”, 1,True Set WshShell = Nothing

Or, go the easy route and grab RegJump from Sysinternals! [stextbox id=“download” caption=“Sysinternal’s RegJump (ZIP)”]http://download.sysinternals.com/Files/Regjump.zip[/stextbox] [stextbox id=“download” caption=“Sysinternal’s RegJump (EXE)”]http://live.sysinternals.com/regjump.exe[/stextbox] RegJump Usage

regjump HKEY_LOCAL_MACHINESoftwareMicrosoftWindows regjump HKCUSoftwareMicrosoftWindows

Abbreviations

HKCR - HKEY_CLASSES_ROOT HKCU - HKEY_CURRENT_USER HKLM - HKEY_LOCAL_MACHINE HKU - HKEY_USERS HKCC - HKEY_CURRENT_CONFIG

Considerations One thing you might consider doing if you use Regjump is to set up an environment variable, for example REGJUMP=C:pathtoregjump.exe. Then you can use Regjump from the ‘Start Search’ box in, say, the Windows Vista/7 Start Menu:

Published At
Tagged with