Set environment variables in Windows 7

Source: Internet
Author: User

This article will not talk about operations on XP and other operating systems. Here we will only talk about operations in Windows 7.

 

Method 1:

In the command prompt (same as XP ). "Start" --- "cmd" --- "Press ENTER" to display the command line mode. Enter "set" in the command prompt to view the environment variable settings. For example, to view the PATH environment variable settings, you can enter "Set
Path ". To create an environment variable, for example, to create an environment variable named CSC with the value of "C:", enter the "set CSC = C:" command. ToDelete
An environment variable. For example, to delete the CSE environment variable, you can enter
"Set CSC =" command (note = There cannot be spaces behind it ). How can I change the setting of an environment variable? There are two ways to change the environment variable: one is the append method, that is, without changing the existing settings of the environment variable, add
Add the value of the variable. For example, to add a setting with the value "D:" To the environment variable, enter "set CSC = % PATH %; D :". The other method is completely modified. For this method, we can directly create an environment variable.

Note that this method is only valid for the current running window. After closing the window, the setting does not take effect.

 

Method 2:

"Control Panel" --- "User Account and home security"-"User Account" --- "change my environment variables" in the last line on the left of the window --- "User variables" on the dialog box ", in the dialog box, enter "system variables" (equivalent to all user variables)-"new" to add the desired variables. Be sure not to have time and Chinese characters.

This method is permanently valid.

 

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.