SetEnvironment

WMA link


SetEnvironment["var" -> "value"]

sets the value of an operating system environment variable.

SetEnvironment[{"var" -> "value", ...}]

sets more than one environment variable.

Set a single environment variable:

See that the environment variable has changed:

Set two environment variables:

See that the environment variable has changed:

Environment values must be strings:

If the environment name is not a string, the evaluation fails without a message.

See also Environment and GeEnvironment.

Run
Share