I'm trying to set var by cmd script, but got some problem,
setx /M JAVA_HOME "D:\Tool\JDK"
setx /M PATH "%PATH%;%JAVA_HOME%\bin;D:\TZProfile\!!!QuickLink\"
I want to add %JAVA_HOME%\bin to PATH, no "D:\Tool\JDK"
I'm trying to set var by cmd script, but got some problem,
setx /M JAVA_HOME "D:\Tool\JDK"
setx /M PATH "%PATH%;%JAVA_HOME%\bin;D:\TZProfile\!!!QuickLink\"
I want to add %JAVA_HOME%\bin to PATH, no "D:\Tool\JDK"
On commandline use ^
to escape, like so
^%JAVA_HOME^%
In batch file, use %
to escape, like so
%%JAVA_HOME%%