Possible Duplicate:
What are PATH and other environment variables, and how can I set or use them?
In Windows 2008 Server R2, once I set an environment variable in the command line, how can I make it stick? For example, it's easy to write:
set path=%path%;
much easier than the crummy right-click My Computer method. But once I set this, the changes disappear with my command window. How to make them stick? I want to do the same with JAVA_HOME and some others as well.
HKCU\Environment
, which is loaded by Winlogon itself. (It's what setx uses, too.)