Jump to content

Register


speedy6
 Share

Recommended Posts

Hi,

Is there a way to look in the registry and do a loop (like array) to see how many key's there are within a key:

$patchmsn = REG****("HKEY_CURRENT_USER\SOFTWARE\Controller") -> Want a array list with witch key's there are in my program controller...

Thanks

Link to comment
Share on other sites

I've found this:

For $i= 1 to 10

$var = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE", $i)

If @error <> 0 then ExitLoop

MsgBox(4096, "SubKey #" & $i & " under HKLM\Software: ", $var)

Next

But I don't know how many key's there are...

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...