Saturday, September 13, 2008

Directly jump to a Registry Key

This method is used to jump directly to a Registry Key rather than manually finding it.
This method uses a VB Script.

Method:
1. Open Notepad.
2. Copy the following lines to the Notepad.

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


3.Save the file. Change the extension from .txt to .vbs .
4. Double click the file and then type the registry path which you need to open.
For Example:
type HKEY_CLASSES_ROOT\CLSID\{69912A20-9BD4-30C4-8CF8-D7046347A218} to get to that key.

Warning: The above method does not help if Registry Editor is already open.Close the Registry Editor and use.

No comments: