|
Previous Top Next |
Prototype: | (String pEnvVar,String pValue),LONG |
pEnvVar | The name of the environment variable to set. |
pValue | The value to assign to the environment variable. |
Returns | False if the function failed. Other values indicate success. |
This method is used to set the value of an environment variable. If the environment variable does not exist it is added to the environment.
Example:
ITS ITShellClass
Env String(20000)
Code
Env = ITS.GetEnvVar('PATH') !! Get current PATH environment variable
Env = Clip(Env) & ';' & Path() !! Append ; + current path
ITS.SetEnvVar('PATH',Env) !! Set the PATH variable with the updated information.
See also: