maqleod Posted June 25, 2007 Share Posted June 25, 2007 is there a way to retrieve all the string names under a given key or subkey in the registry and put them into an array? [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Kogmedia Posted June 25, 2007 Share Posted June 25, 2007 (edited) Possibly something like this; Dim $i ;Get Network Connection Names $base = "HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}" While 1 $i += 1 $key = RegEnumKey($base, $i) If @error <> 0 Then ExitLoop $name = RegRead($base & "\" & $key & "\Connection", "Name") $type = RegRead($base & "\" & $key & "\Connection", "PnpInstanceID") ConsoleWrite($name&@CRLF&$type) WEnd Edited June 25, 2007 by Kogmedia [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now