# Funktionsreferenz

EnvSet

Writes an environment variable.

EnvSet ( "envvariable" [, "value"] )

Parameter

envvariable | Name of the environment variable to set.
value | [optional] Value to set the environment variable to. If a value is not used the environment variable will be deleted.

Bemerkungen

A environment variable set in this way will only be accessible to programs that AutoIt spawns (Run, RunWait). Once AutoIt closes, the variables will cease to exist.

Siehe auch

EnvGet, EnvUpdate

Beispiel

EnvSet("MYENV", "this is a test")