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)

Scripting Guidelines

 

Related functions

Registry Functions