Sets the value of an existing environment variable or creates one with the specified value if the variable does not exist. This function an alternative way of setting environment variables apart from the standard JavaScript environment variable.
The function has the following syntax:
pute(sVar, sVal)
The function returns true or false indicating success or failure.
Specifies the name of the environment variable.
Defines the value of the environment variable.
Example
Append the current work directory to the path:
pute(gete("PATH")+";"+curDir());
Copyright © 2013 CA. All rights reserved. |
|