Function Reference

EnvSet

Writes an environment variable.

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

 

Parameters

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.

 

Return Value

None.

 

Remarks

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.

 

Related

EnvGet, EnvUpdate

 

Example


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