Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If the "set" command on Windows XP is used to set an environment variable in the terminal, why doesn't the environment variable appear in the environment variables list when you go Start -> rt click on My Computer -> Advanced tab -> Environment Variables?

share|improve this question

migrated from Oct 14 '11 at 19:08

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.

up vote 4 down vote accepted

When you use the set command in a CMD window, you are only setting the environmental variable for that individual CMD shell. The variables visible in Start -> My Computer -> Advanced -> Environment Variables are the variables that are set to be persistent and global.

Use the setx command in Windows if you want to create a persistent Environment Variable. setx.exe writes to the registry. ENVVARS created with setx WILL be visible in Start -> My Computer -> Advanced -> Environment Variables.

share|improve this answer
Thanks.. it is making more sense now. – O_O Oct 14 '11 at 18:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .