Jump to a registry key directly

When you start Regedit, it automatically opens the last key that was viewed. (Registry Editor in Windows XP saves the last viewed registry key in

a separate location). If you wish to jump to a particular registry key directly without navigating the paths manually, you may use any of these

methods / tools.

Using a VBScript: Copy these lines to a Notepad document as save as registry.vbs


Set WshShell = CreateObject("WScript.Shell")

Dim MyKey

MyKey = Inputbox("Type the Registry path")

MyKey = "My Computer\" & MyKey

WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\Lastkey",MyKey,"REG_SZ"

WshShell.Run "regedit", 1,True

Set WshShell = Nothing


Double-click Registry.vbs and then type the full registry path which you want to open. [ Example: HKEY_CLASSES_ROOT\.MP3 ]

Limitation: The above method does not help if Regedit is already open