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.