GetFirstKey

Used to start the enumeration of keys residing in a registry path.

Syntax

GetFirstKey(Path)

Returns

String – name of the first key.

Example

This scripts lists all of keys under Microsoft:

Function Main

Dim Ro As Object

cr = Chr(13) + Chr(10)

Set Ro = Registry.Connect("127.0.0.1")

Value = ro.GetFirstKey("SOFTWARE\Microsoft")

While Value <> ""

Echo "Keyname = " & value & cr

Value = ro.GetNextKey

Wend

End Function