Reg\_ExistKey
Description
Section titled “Description”Checks if specified key exists
Syntax
Section titled “Syntax”Reg_ExistKey(sHandle, sKey, bMustExist) as Boolean
Parameters
Section titled “Parameters”sHandle (String)
HKEY-Handle
sKey (String)
Subkey path
bMustExist (Boolean)
TRUE if the key must exist
Return value
Section titled “Return value”Result will be stored in gbValue
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Reg_ExistKey("HKLM", "Software\KeyName", False)If bStatus Then bStatus = Job_Writelog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”