Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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