Windows environment variables:
The name is very big, is actually the Java static constant role, namely stores the thing the variable. Case insensitive
Windows environment variables are divided into two types:
System environment variables: Any user can use. The cmd command set is SETX VariableName variablevalue-m (requires administrator privileges to refer to my previous article http://blog.csdn.net/ zhjali123/article/details/42815087).
User variables: Only the owning user is available, and the cmd command is SETX VariableName VariableValue
The relationship between the two is: User variables can be called System variables, system variables can not invoke user variables , user variables can only be called by the owning user.
Special Windows environment variable path:
Path is the path of the CMD lookup program, such as why the Windows key +r search cmd, you can open cmd, and enter QQ will not open QQ. Because the system needs to know where to go Cmd,path path Records C:\Windows\System32, and CMD.exe is in this directory. If you add the path of QQ to the path then you can enter QQ will be able to open QQ.
You can create a new path in the user variable without changing the system variable. The order of the Finder is: cmd current directory---"System path PATH---" User path
Comes with a CMD script I wrote myself that can be used to switch the JAVA7 path and JAVA6 path in path
@ECHO off::echo input num%1if%1 EQU 6 (call:setpathjava6) ELSE (call:setpathjava7): Setpathjava6echo Set path to Java 6 SETX path "%java_6_path%"-mcmd:setpathjava7echo Set path to JAVA 7SETX path "%java_7_path%"-mcmd
CMD Environment Variables for windows