QAID # 10443 Published
Question / Problem:
What are Environment Variables and how can they be changed?
Answer / Solution:
Managing Environment Variables System Variables
You must be an administrator to modify a system Environment Variable. System Environment Variables are defined by Windows and apply to all computer users. Changes to the system environment are written to the Registry, and usually require a restart to become effective.
User Variables for User Name
Any user can add, modify, or remove a user Environment Variable. These variables are established by Windows XP Setup, by some programs, and by users. The changes are written to the Registry, and are usually effective immediately. However, after a change to User Environment Variables is made, any open software programs should be restarted to force them to read the new Registry values. The common reason to add variables is to provide data that is required for variables that you want to use in scripts.
To view or change Environment Variables:
- Right-click My Computer, and then click Properties.
- Click the Advanced tab.
- Click Environment variables.
- Click one the following options, for either a User or a System variable:
- Click New to add a new variable name and value.
- Click an existing variable, and then click Edit to change its name or value.
- Click an existing variable, and then click Delete to remove it.
This variable contains a semicolon-delimited list of directories in which the command interpreter will search for executable files. When adding paths, use semicolon (;) to separate.
%TEMP% and %TMP%
These variables contain the path to the directory where temporary files should be stored. Used by most installer programs.
More information is available at: WikipediA: Environment variable.