Basic operating environment variables and path environment variable
Interpretation of environment variables
Environment variable is the operating system among some of the variables used to specify some parameters refer to the operating environment of the operating system in the operating system. Environment variable is an object in an operating system with a particular name, it contains one or more application programs will use the information. Such as Windows and DOS operating system path environment variable, when the system is required to run a program and it does not tell the full path where, in addition to the system to find this program in the current directory, we must also specify the path to the path to find .
We can, to configure the computer by modifying environment variables (mainly used to configure some path)
Some basic operating environment variables
First, the viewing environment variable
-
Right-computer (this computer), select Properties
-
The left side of the system interface to select Advanced System Settings
-
Selected to view the environment variable
is divided into two parts by the environment variable interface diagram, the upper side is the user environment variables, system environment variables are below
system environment variables for all users to function, but generally it is only the difference between the two is not a user Big. But when your computer has multiple users, it is recommended to use a computer is not fully understood, only modify user environment variables, do not modify the system environment variables.
Second, add an environment variable
-
Click the "New" button to add an environment variable
-
Environment variable can be used by a plurality of values between the value of the value; (English) spaced
Third, modify environment variables
- Click the "Edit" button to modify environment variables
Fourth, delete environment variables
- Click the "Delete" button to delete the environment variable
path environment variable
A, path environment variable introduced
-
path is the path to be understood as a computer looking at a file.
That it can be stored in the environment variable is a path to a path. Of course, this is more than one path, path a plurality of paths are also saved. -
When we enter a command or access a file on the command line, the system first looks in the current directory, if found directly executed or opened; if not found, the path will turn to the path environment variable to find, until you find. If the path path environment variables are not found, then an error
'xxx' 不是内部或外部命令,也不是可运行的程序或批处理文件。
- So we often need to access some of the path to the file or program, added to the path environment variable, so that we can access these files at any position.
Second, modify the path environment
here explain how to add the path to the file to the path, so that anywhere in the command line to access this file. Here at "hello" folder "abc.txt" file as an example.
-
Follow the steps above talked about entering the environment variable page.
-
Click on the user environment variables in the path, and then select "Edit"
-
After entering the path environment page, select "New"
-
To modify into a file / folder interface, double-click in the above path, the path to the folder appears, select Copy, and then pasted into the new position in the path environment.
-
Click OK, OK all the way down to.
-
We then open a command line, you can access these files at any position.
Precautions:
-
If the environment variable is no path, you can manually add
-
path environment variable is not case-sensitive
, such as: PATH Path path, this is the same -
Modify environment variables must restart the command line window
-
Used between the plurality of paths; spaced
That's all for this article.