Env_GetString
Description
Section titled “Description”Gets value of specified environment variable
Syntax
Section titled “Syntax”Env_GetString(sName, sType, bMustExist) As Boolean
Parameters
Section titled “Parameters”sName (String)
Section titled “sName (String)”Environment variable name.
sType (String)
Section titled “sType (String)”Environment variable type. ‘System’, ‘User’ or ‘Process’
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”Environment variable must exist
Return value
Section titled “Return value”Result will be stored in gsValue
Example
Section titled “Example”If bStatus Then bStatus = Env_GetString("Path", "System", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)