Is there a way to append a Registry key with a batch file? To be clear, I don't want to replace the key, I want to add to it.
Example:
Key Location: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
Change: C:\Windows;C:\Java
To: C:\Windows;C:\Java;C:\Program Files (x86)\CFLAT
It's a REG_EXPAND_SZ, so [~] won't work, unless I'm doing it wrong. https://msdn.microsoft.com/en-us/library/aa371168(VS.85).aspx