Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Briji pe Simpatie.ro
Femeie
24 ani
Bihor
cauta Barbat
24 - 48 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] VBScript to Go To a Registry Key / Jump to Registry Key Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2211
Navigating through the registry can take a long time if you have to go to many keys, eventually return to them to make changes, especially in the case of a fresh Windows install.
Or you simply want to add or remove a key from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths for example, the place where you set custom files to be open from Start - Run (see THIS TUTORIAL)

Sure, you end up making .reg files with predefined values and that you easily import them and you're done in under 1 minute.

However, for some keys it is nice to have an option to jump / navigate straight to those keys, for tweaking or just checking their values.

Copy / paste the code below into Notepad and save the file as .VBS, then run it to jump to the key stored in cClipBoard. I added line 7 and added ' to line 6 (made it a comment) so the VBS code below jumps to that key in line 7.
The original code (remove ' from line 6 and add it to line 7) was to jump to the key existing in clipboard, assuming you have multiple key addresses stored in a text file, and you copy one to clipboard then run the .VBS file to open regedit at that key.


Dim objHTA
Dim cClipBoard
Dim WshShell

set objHTA=createobject("htmlfile")
'cClipBoard=objHTA.parentwindow.clipboarddata.getdata("text") 'THIS IS LINE 6
cClipBoard="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" 'THIS IS LINE 7

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit\LastKey", cClipBoard, "REG_SZ"
WshShell.Run "regedit.exe -m"

Set objHTA = nothing
Set WshShell = nothing

' Regedit remembers the last key that was open in it and when you access regedit it will open at that key.
' This VBS file modifies that last key to a key of your desire, then when you open regedit ... Voila!
' Note the -m switch from the line WshShell.Run "regedit.exe -m" - this allows running regedit with multiple instances


Source:


_______________________________________


pus acum 4 ani
   
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2211
Another option without having to run a VBS file:

1. Download the Microsoft utility regjump:

2. Extract the executable in a folder of your choice

3. Create a shortcut of the executable in the same folder.
3.1. Right click the shortcut and select Properties
3.2. Click the Advanced button in the Shortcut tab
3.3. Select "Run as administrator" then click OK and again OK

4. SHIFT + Right click the shortcut and select "Copy as path"

5. Open the registry

6. Go to the Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

7. Create a new Key and name it regjump.exe (for example), or k.exe (for simplicity), key should be: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\regjump.exe

8. Under that Key, edit the (Default) String value and hit CTRL+V to paste the path of the shortcut file you created at 4.

Done.

Usage:

1. Copy any registry path to clipboard, for example select the following path and hit CTRL+C: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion

2. Start - Run - regjump - press enter

3. Key will open in regedit

Sources:


_______________________________________


pus acum 2 ani
   
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 772
Modified post #1 to remove last \ from line 7 as it wasn't working properly with it there.

This \:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\


pus acum 9 luni
   
Pagini: 1  

Mergi la