CMD Environment Variables for windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.