Read Variable Environment
This component mounts to retrieve environment variables
Parameters
Workstation: the name or IP address of the computer on which you want to retrieve an environment variable
Create a row with 
Create a variable like "Var_System" with a value "PATH" to indicate that you want to read the environment variable PATH:
Then you select the variable:
- Var_System in the column "Variable_Name"
- Error Status in the column "Action if Missing"
Now you can launch the treatment:
The result is available in the following variables:
- ENV_EXIST_0 indicate if the environment variable was found
- ENV_VALUE_0 contain the value of the variable PATH
To use these variables you must respect following syntax:
{Treatment name.ENV_EXIST_0} and {Treatment name.ENV_VALUE_0}
Example:
{Read environment variables.ENV_VALUE_0}
{Read environment variables.ENV_EXIST_0}
Example 2:
Reading environment variable, you can use a Variable Calculation treatment to set the properties {Read environment variables.ENV_VALUE_0} and {Read environment variables.ENV_EXIST_0} in another variable
Get the world's favorite Script generator at http://www.paseosoft.com/