Reg\_GetString
Description
Section titled “Description”Gets the value of a registry variable of type String.
Syntax
Section titled “Syntax”Reg_GetString(sHandle, sKey, sVariable, bMustExist) as Boolean
Parameters
Section titled “Parameters”sHandle (String)
HKEY-handle
sKey (String)
Subkey path
sVariable (String)
Name of variable to read
bMustExist (Boolean)
TRUE if variable must exist
Return value
Section titled “Return value”Result will be stored in gsValue.
If the variable can be read gbValue will be set to TRUE, otherwise it will be set to FALSE.
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Reg_GetString("HKLM", "Software\KeyName", "ValueName", False)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”