Skip to content

Reg\_EnumVariable

Enumerates variables

Reg_EnumVariable(sHandle, sKey, bMustExist) as Boolean

sHandle (String)

HKEY-Handle

sKey (String)

Subkey path

bMustExist (Boolean)

TRUE if the key must exist

Result will be stored in gaValue

VBScript

If bStatus Then bStatus = Reg_EnumVariable("HKLM", "Software\KeyName", False)
If bStatus And IsArray(gaValue) Then
For index = LBound(gaValue) to UBound(gaValue)
bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True)
Next
End If

Scripting Guidelines

Registry Functions