Skip to content

Reg\_ExistVariable

Checks if specified variable exists

Reg_ExistVariable(sHandle, sKey, sVariable, bMustExist) as Boolean

sHandle (String)

HKEY-Handle

sKey (String)

Subkey path

sVariable

Variable to test existence of

bMustExist (Boolean)

TRUE if the key must exist

Result will be stored in gbValue

VBScript

If bStatus Then bStatus = Reg_ExistVariable("HKLM", "Software\KeyName", "ValueName", False)
If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Registry Functions