Jump to content

registry searching


Recommended Posts

Does anyone have an idea on how to search the registry for say all keys with the same name? I am looking to search the hkcu for all keys with value 001f6700 exists. then i want to see whether the value 001e3001 exists in the same subkey

Link to comment
Share on other sites

Download the free 134 KB command-line registry editor--and FileInstall it with your AutoIt script if needed.

http://www.winguides.com/software/display.php/27/

Example usage if reg.exe is in the same folder as your script:

Run(@ComSpec & '/c "REG FIND HKLM\SOFTWARE 001f6700" > output.txt')

Then parse output.txt

You have to specify a key (SOFTWARE in the example), so you may want to look at the RegEnum function available in the unstable AutoIt version

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

  • 2 years later...

Download the free 134 KB command-line registry editor--and FileInstall it with your AutoIt script if needed.

http://www.winguides.com/software/display.php/27/

Example usage if reg.exe is in the same folder as your script:

Run(@ComSpec & '/c "REG FIND HKLM\SOFTWARE 001f6700" > output.txt')

Then parse output.txt

You have to specify a key (SOFTWARE in the example), so you may want to look at the RegEnum function available in the unstable AutoIt version

You could also use Autokey and they have a loop function to search registry and files. That is the only reason I use that program, as Autoit is much better, but that is a work around. Create an exe from the autohotkey and call the exe.

Joseph MangrumCCNA, CNA, MCP, Network+

Link to comment
Share on other sites

or http://www.autoitscript.com/forum/index.ph...st&p=220285 (no guessing how many keys/values)

or if you can guess the max number of keys and use the Built in Functions

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

sweet.. I have been trying to code this for awhile now, do you mind if I use it on my scripts?, since I hate to keep on going back to autohotkey.

That's what its there for, to share with everyone.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...