Skip to content

Env_GetString

Gets value of specified environment variable

Env_GetString(sName, sType, bMustExist) As Boolean

Environment variable name.

Environment variable type. ‘System’, ‘User’ or ‘Process’

Environment variable must exist

Result will be stored in gsValue

If bStatus Then bStatus = Env_GetString("Path", "System", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Env_SetString Constants Package Property Variables