Returns the value of an environment variable of the operating system.
sValue = SYS_GetEnv (sVar)
|sValue||The value of the variable. STRING.|
|sVar||The environment variable to check. STRING.|
SYS_GetEnv returns the value of the specified environment variable of the operating system. The function returns an empty string ("") if the value is not defined. For additional information on the environmental variables for Windows, refer to the MSDN.
SYS_GetEnv returns the value that the environment variable had when Silk Test Classic started, or the value assigned by a previous call to SYS_SetEnv.
SYS_GetEnv is executed by the Agent process, not the Silk Test Classic process. To affect the host process, use the function with the hHost notation or machine handle operator. For more information about the machine handle operator and hHost, see Machine handle operator.
STRING sValue sValue = SYS_GetEnv ("PATH") Print (sValue)