This is a very basic question, but I can't find an answer. 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: