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?

link|improve this question

feedback

migrated from unix.stackexchange.com Oct 14 '11 at 19:08

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

1 Answer

up vote 3 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.

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

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.