How to Define an Environment Variable

Last reviewed: 06/02/2008
Article ID: R10463

SUMMARY

The operating system you use determines how environment variables are defined. Defining environment variables for Windows XP/2000/NT users is done via the Control Panel. Because of increased security in Windows Vista, standard users must have UAC turned On to change environment variables, and the change must be completed via User Accounts.

Windows Vista Note:  If logged in as a standard user with UAC turned On, defining environment variables via the Control Panel will set the variables for the administrative account used for elevation, not the user account of the current logon session. Defining environment variables via User Accounts sets the variables for the user account of the current logon session, not the administrative account used for elevation.

Windows Vista

  1. From the Start button, type Accounts in the Start Search field.
  2. Under Programs, select User Accounts.
    Note: If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
  3. In the User Accounts window, under Tasks, select Change my environment variables.
  4. Use the New, Edit or Delete buttons to add, change or delete environment variables.
  5. Enter the environment variable name in the Variable name field.
  6. Enter the value of the environment variable in the Variable value field.
  7. Click OK and then OK to set the environment variable.

Note: Multiple values can be assigned to a variable by separating the values with a semicolon (;).

Windows XP/2000

  1. From the Start button, select Settings, and then Control Panel.
  2. Double-click System and click the Advanced tab.
  3. Click the Environment Variables button.
  4. Use the New, Edit or Delete buttons to add, change or delete environment variables.
    Note: Environment variables in Windows XP/2000 can be added for the user or the system.
  5. Enter the environment variable name in the Variable name field.
  6. Enter the value of the environment variable in the Variable value field.
  7. Click OK and then OK to set the environment variable.

Note: Multiple values can be assigned to a variable by separating the values with a space.

Windows NT Users (3.51 and greater)

  1. From the Start button, select Settings, and then Control Panel.
  2. Double-click System and click the Environment tab.
  3. Enter the environment variable name in the Variable box.
  4. Enter the value of the environment variable in the Value box.
  5. Click Set to set the environment variable.

© 1999-2008 Software Technology, Inc.   All rights reserved. Terms of Use
The maker of Tabs3 and PracticeMaster
e-Mail Suggestions for the Knowledge Base to: kb@Tabs3.com
Technical Support via e-mail is not available.
Knowledge Base:   http://support.Tabs3.com
Web Site:   http://www.Tabs3.com