www.icetips.com  Icetips Utilities Documentation 11/16/2009    

Shell Class:  SetEnvVar

Previous  Top  Next  


Prototype: (String pEnvVar,String pValue),LONG

 

pEnvVarThe name of the environment variable to set.
pValueThe value to assign to the environment variable.

 

ReturnsFalse 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:

GetEnvVar



Direct link to this page: http://www.icetips.com/manuals/utilities/setenvvar_shellclass.htm