Previous Topic: platform--Query Operating System Type (Function)Next Topic: qout--Write Output Followed by Linefeed to stdout (Function)


pute--Set an Environment Variable (Function)

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.

sVar

Specifies the name of the environment variable.

sVal

Defines the value of the environment variable.

Example

Append the current work directory to the path:

pute(gete("PATH")+";"+curDir());

See also:

gete--Get Environment Variable (Function)