I think my PATH in my environment variables is not working properly and would like to ask a few questions about environment variables in general.
What is the difference between User variables and System variables? When should one use one? What if you have i.e. the same variable for both user and system? Does not not matter because the system variables encompass all users?
I'm trying to use shortcuts to make my PATH cleaner. For example, I have set my
JAVA_HOME
toC:\Program Files\Java\jdk1.6.0_25\bin
and thenPATH
to%JAVA_HOME%\bin
. However, when I type in"echo %PATH%"
in the cmd, it still shows%JAVA_HOME%\bin
. Should I be worried that it is not"C:\Program Files\Java\jdk1.6.0_25\bin"
?If I wanted to check if an xml existed in my path, how would I verify this?
Because some programs don't like spaces in environment variables, it was suggested to use C:\Progra~1\ instead of C:\Program Files\ as shown here: http://ist.berkeley.edu/as-ag/technology/howto/install-java-sdk-win.html What are the procedures to do this? Where do I start the break and add the ~1. Is it always a 1?
Thank you!