1. We can use one temp variable to store the path with spaces, after we can use this variable for setting the environment variables.
For ex:
to set JAVA_HOME, I can use below commands:
set temp=c:\program files\java\jre7
set JAVA_HOME="%temp%"
2. we can simply go with the below approach:
set "JAVA_HOME=c:\program files\java\jre7"
No comments:
Post a Comment