Basic concepts of environment variables
- environment variable (environment variables) It is generally used in the operating system to specify some parameters of the operating system running environment , Such as : Temporary folder Location and System folder Location, etc .
- The operation of programming variables
2.1 View environment variables
Right click the computer ( This computer ), Select Properties
Select... On the left side of the system interface Advanced system setup
Choose environment variables
2. Add environment variables
Add environment variables through the new button
Environment variables can have multiple values , Between values, use Separated by semicolons
3. Modify environment variables
Modify the environment variables through the Edit button
4. Delete environment variables
Delete environment variables by deleting the button
path environment variable
path environment variable Save the path one by one
When we type a command on the command line , The system will first find... In the current directory , If so, just open it
If not, I will go to path The path to the environment variable , Until we find it . If it is not found, an error will be reported
We can add the path of some frequently accessed files or programs to the environment variable . So we can access these files anywhere
matters needing attention :
path Environment variables are not case sensitive path Path PATH
Use... Between multiple paths ; separate
Now let's Create a folder in the desktop as the environment variable
Create a text in the variable (123.txt) The writing content is ( You opened it with an environment variable )
Then punch in the variable , find path Variable ,( because path Variable means path )
We now configure the number variable , Press win+R Open or run Right click to start running at point
Input cmd Point determination
After this is, we can directly enter 123.txt You can open it directly
Then enter the following picture
This allows you to take advantage of the path( route ) Quickly open the file you want .
This concludes the tutorial , If you have any questions, please leave a message , I will reply in time or enter our communication group