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