Skip to content

Reg_GetString

Gets the value of a registry variable of type String.

Reg_GetString(sHandle, sKey, sVariable, bMustExist) as Boolean

HKEY-handle

Subkey path

Name of variable to read

TRUE if variable must exist

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.

If bStatus Then bStatus = Reg_GetString("HKLM", "Software\KeyName", "ValueName", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Registry Functions Constants Package Property Variables