I am running the following cmd to set my system environment variable.
call C:\Windows\system32>reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
\Session Manager\Environment" /v JAVA_HOME /t REG_EXPAND_SZ /d "C:\Program Files\Java
\jdk1.6.0_37"
I want to do something similar with my path, but I dont want to overwrite the values that are there, I just want to add to them. Will running the above command overwrite or update? If it overwrites how would I get it to update instead?
Yes,
REG ADDwill overwrite the existing value, but I wrote a script that should help you.Please pay attention to the characters after
delims=: these aren’t spaces, it’s a single tab character (ASCII #9).