Skip to content

Reg\_ExistVariableX64

Checks if specified variable exists in 64 bit registry from a 32 bit context

Reg_ExistVariableX64(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_ExistVariableX64("HKLM", "Software\KeyName", "ValueName", False)
If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Registry Functions