I want to set an environment variable from the command prompt and then be able to access it globally (for instance, I should see it by going to System -> Environment Variables).
When I use the set command, it isn't accessible in a new cmd session.
set NEWVAR=SOMETHING
echo %NEWVAR%
Related questions: