Using the command prompt to change environment variables
You can change the setting of an environment variable at a command prompt.
About this task
If no value is specified, the environment variable is unset, as if it did not exist.
Sometimes you must add information to an environment variable that is already set. For example, the PATH environment variable is always set in Windows™ environments. When you use HCL Informix® products, you must add the name of the directory where the executable files for the HCL Informix® products are stored to the PATH.
set PATH=d:\informix\bin;%PATH%
set INFORMIXDIR=d:\informix
set PATH=%PATH%
You might prefer to use this version to ensure that your PATH entry does not contradict the search path that was set in INFORMIXDIR and to avoid the requirement to reset PATH whenever you change INFORMIXDIR.
For more information about setting and modifying environment variables, see your operating-system publications.