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)
Environment variable name.
sType (String)
Environment variable type. ‘System’, ‘User’ or ‘Process’
bMustExist (Boolean)
Environment variable must exist
Return value
Section titled “Return value”Result will be stored in gsValue
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Env_GetString("Path", "System", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”