Reg_ExistVariable
Description
Checks if specified variable exists
Â
Syntax
Reg_ExistVariable(sHandle, sKey, sVariable, bMustExist)Â as Boolean
Â
Parameters
sHandle (String)
HKEY-Handle
sKey (String)
Subkey path
sVariable
Variable to test existence of
bMustExist (Boolean)
TRUE if the key must exist
Â
Return value
Result will be stored in gbValue
Â
Example
VBScript
If bStatus Then bStatus = Reg_ExistVariable("HKLM", "Software\KeyName", "ValueName", False) If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)
Â