A
Angel Tsankov
How do I set an environment variable in a batch file and make the new value permanent across system restarts?
In said:How do I set an environment variable in a batch file and make
the new value permanent across system restarts?
Mark V said:SETX.EXE from the Resource Kit is one way.
One might also edit the registry from the commandline (.REG file
merge or REG.EXE). One thing you need to know is whether this is a
System or User environment change.
Angel Tsankov said:OK, if I choose to modify the registry via a reg file how do I apply the changes (from a batch file again) without restarting the
system.
[ ]In said:Please break your lines at about 70 chars.
%SystemRoot%\System32\RUNDLL32.EXE
%SystemRoot%\System32\USER32.DLL,UpdatePerUserSystemParameters
In said:OK, if I choose to modify the registry via a reg file how do I
apply the changes (from a batch file again) without restarting
the system.