In the computer room, most people have two deskmate, a left deskmate, a right deskmate. A few days ago, notice that my left deskmate Song Rongkai with dos command to open the software, crackling hit a few keyboard software obediently opened, I am very puzzled, asked him how to do, he said and environment variables, his blog has written, so, I went to see his blog: "High-efficient living" first knowledge of environmental variables, Inside the corresponding answer and pictures for detailed steps to explain, you can go to see, as for why I write a similar blog? The answer is simple, because there is a more convenient way to once and for all, do not have to edit the system variables to the path of the variable value one by one to add the path of the software ~
First of all, let's introduce today's protagonist: environment variables. An environment variable is an object with a specific name that contains the information that one or more applications will use. For example, path, when the system is required to run a program without telling it the full path of the program, in addition to the current directory under the search for this program, but also to the path specified in the paths to find. The user can run the process better by setting the environment variables.
When we want to use the "win+r" shortcut (ie "Run" command) to open any application, if the program is not in any system directory, you need to bring the full path of the program, such as my QQ.exe full path is D:\QQ\Bin\QQ.exe, then you need to "run window" Enter "D:\QQ\Bin\QQ.exe" (not including quotation marks), such as:
If we follow the beginning of the Song Rongkai blog operation Method, after the operation is completed, only need to enter QQ in the Run window can start QQ, so that the way to save the path ~ ~ ~ However, our application more than QQ one, if every one to register an environment variable, a little too troublesome, so, Next I'm going to say the beginning of the buried foreshadowing ~ ~ ~
The idea is to create a shortcut for each application, put it in a folder, and then register the folder with the path variable, so it's a lot easier.
Create a folder in any directory, name your own, the path is good. For example, I was in the C packing directory set up a folder called "Shorts". And then this folder is registered to the path variable as described above, and the case is as if it is not sensitive ~ Click OK-OK to save the environment variable.
The preparation work is done, the next step is to set up a shortcut, change the name into shorts. Change the name is said, change to a short good remember, such as Photoshop changed to Ps,kugou to kg, because the file name here is pressed after win+r to enter the name, if the loss is very long, it is better to move the mouse ...
After everything is done, you can start the application by using Win+r and then entering the shortcut name ~ ~
How to use DOS commands to quickly start software (environment variables)