Sysinternals Regjump integration

Discuss and share scripts and script files...
Post Reply
Algoblin
Posts: 2
Joined: 14 Mar 2013 17:51

Sysinternals Regjump integration

Post by Algoblin »

Hi there.

Editing the Windows registry is as simple as pressing Win+R and typing "regedit" (or using the Ctrl+G equivalent ;)), and navigating to our key of choice is as simple as following the paths (which look like "HKCU\Software\Microsoft\Windows NT\" etc.) we read from a website or wherever.

What if we could immediately parse such addresses and point regedit to them in one command? That's where Regjump from Mark Russinovich's Sysinternals Suite comes in handy. It's a handy command-line tool which takes a registry address as an argument and takes us there with regedit.

One could of course move it to the Windows folder, and still call it from the command-line/run menu (or use the full path to it all the time), just pasting the registry path needed. We love our GUIs though, and I thought making use of it through a custom button would be a nice efficiency boost (sounds better as a browser plug-in idea though).

This small script may be a little clueless and not super-well written (and I'd appreciate any criticism and tips), but it gets the job done. Uses (creates) an .ini file, "regjump.ini" to store settings. Either prompts to enter a path or directly uses the clipboard (add fromclipboard=1 to the .ini file).

Regjump already converts some abbreviations to full names, like HKLM becomes HKEY_LOCAL_MACHINE, but I already think of some new improvements to add through the script- "arguments" of some kind to add before pasting the address in input mode, parsing alternatively spellt addresses ("HKLM>Software>Microsoft> or "HKLM \ Software\ Microsoft \") seem to be a good start.

(e: I said it gets the job done, but it would be cool to know if it simply works- I didn't have anyone at hand to test it!)

Regjump itself: http://technet.microsoft.com/en-us/sysi ... s/bb963880
To see the attached files, you need to log into the forum.

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sysinternals Regjump integration

Post by highend »

Nice idea.

I've modified your code a bit ;)

Differences:
- I don't use regjump from Sysinternals because I don't like the eula accept on the very first time (<- portable user, don't want to leave traces on other pcs)
- Instead RegScanner (http://www.nirsoft.net/utils/regscanner.html) is used
- On Vista+ regjump and other utilities like that must be used with elevated rights to let regedit open that path
-> Hstart (http://www.ntwind.com/software/hstart.html) is used to start RegScanner elevated

Other changes:
- Clipboard is scanned for registry paths automatically, no config setting required
- If the clipboard doesn't contain one and you don't paste one into the input box, you get a history (limit is user definable on first start) of all the last paths you've used (ofc only from using this script^^)

Remark: If you ever decide to lower the history limit size, you should delete all superfluous lines in the [History] section of the .ini file manually.

Maybe you'd like to get some code of it and develop it further. E.g. by adding a favorites section that is always displayed in front of the history entries?...
RegJump.xys
Regards,
Highend
To see the attached files, you need to log into the forum.
Last edited by highend on 15 Mar 2013 01:09, edited 3 times in total.
One of my scripts helped you out? Please donate via Paypal

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Sysinternals Regjump integration

Post by Marco »

highend wrote: - On Vista+ regjump and other utilities like that must be used with elevated rights to let regedit open that path
-> Hstart (http://www.ntwind.com/software/hstart.html) is used to start RegScanner elevated
http://code.kliu.org/misc/elevate/
It's only 6 kb
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Sysinternals Regjump integration

Post by highend »

Someday I'll enhance it so you can use the application that the user prefers (I'll stay with hstart, like the ability to start things with e.g. priority).

Btw, I've incorporated the favorite function myself. They have to be configured manually inside the RegJump.ini file (you have to add the sections name (Favorites) as well).

Like:
[Favorites]
a=HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
b=HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
c=HKLM\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules
Only alphabetical letters (a-z) AND (A-Z) are allowed, so you can define only ;) 52 favorites *g*

Download it from my first post (http://www.xyplorer.com/xyfc/viewtopic. ... 397#p84028).

Regards,
Highend
One of my scripts helped you out? Please donate via Paypal

Algoblin
Posts: 2
Joined: 14 Mar 2013 17:51

Re: Sysinternals Regjump integration

Post by Algoblin »

Thanks for picking up and the suggestions! XYplorer truly has got a great community.

All of this came from an idea which went like "What if I had a directory view in one pane, and the registry in the other... And could drag&drop files to copy them as paths?", but then decided that touching registry hives themselves is not a job for me, and that making some sort of "virtual" view of the registry as folders and files, and then appending .reg files (to use just the "official" tools and play safe that way), would probably be ineffective to use each time. Having quick access to favorites is really enough for the "everyday" tweak :)

Post Reply