Skip to content

Instantly share code, notes, and snippets.

@thekarel
Created October 18, 2013 15:08
Show Gist options
  • Save thekarel/7042978 to your computer and use it in GitHub Desktop.
Save thekarel/7042978 to your computer and use it in GitHub Desktop.
To make the environment variable accessible globally you need to set it in the registry. As you've realised by just using:
set NEWVAR=SOMETHING
you are just setting it in the current process space. According to this page you can use the setx command:
setx NEWVAR SOMETHING
setx is built into Windows 7, but for older versions may only be available if you install the Windows Resource Kit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment