Sign in to follow this  
Followers 0
maqleod

retrieve registry string names under single key

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Kogmedia

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
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
Sign in to follow this  
Followers 0