There are two methodologies to defining environment variables on Windows. I have seen examples using ‘system’ variables and mere ‘environment’ ones. What are the differences and consequences to using the one method over the other?
There are two methodologies to defining environment variables on Windows. I have seen examples
Share
Variables like %SystemRoot% and %WinDir% are just plain environment variables. The only difference is where their values come from:
do note that it is out of date and doesn’t cover 64-bit specific variables
The effective process environment is a merge of these three sources.
The latter two registry keys can be edited from the Control Panel + System applet, Environment Variables button. Beware that making the changes effective may require a logoff + logon so the process starts with a fresh copy of the environment instead of a stale one it inherits from its parent process.