How to modify the environment variable PATH in Win7 system to run the process better

  

An environment variable is an object with a specific name in the operating system. It contains information that one or more applications will use, and "Path" is a variable that stores some common commands. The directory path user can run the process better by setting the value of the environment variable path. How to modify the environment variable PATH if you want to modify it? The following is a detailed step for how to modify the environment variable PATH in the Win7 system.

Method 1. Set the environment variable by command 1. Open “Start →Run”, in the run box “cmd”, press Enter to open the command prompt window;

2 In the command prompt window that opens, type “path”, press Enter to view the environment variable settings;

3, change the environment variables in two cases: First, the append method is to not change If the environment variable is currently set, increase the value of the variable. For example, to add a value to the environment variable, set the value of "D:Python", you can enter "ldpath;%=%path%;D:Python"; This is a completely modified way. For this method, we can implement it by directly creating an environment variable.

4, this method is only valid for the current running window, after closing the running window, the setting will not work.

Method 2, directly modify the environment variable PATH under win7
1, right click on the computer to select properties, and then click “ advanced system settings & rdquo;, in the open system properties window, switch to “ Advanced & rdquo; tab, then the "Environment Variables" button below;
2, then find the variable path in the system variable display card, select and click “ edit & rdquo; to modify.

Windows system environment variable description

%ALLAPPDATA% means C:DocumentsandSettingsAllUsersApplicationData

%ALLUSERSPROFILE% means C:DocumentsandSettingsAllUsers

%APPDATA% C:DocumentsandSettings current user name ApplicationData

%USERPROFILE% means C:DocumentsandSettings current user name

%SYSTEMDRIVE% means C:

%SYSTEMROOT% means C:WINDOWS

%WINDIR% means C:WINDOWS

%ProgramFiles% means C:ProgramFiles

%CommonProgramFiles% means C:ProgramFilesCommonFiles

%HOMEDRIVE% means C: < Br>

%TEMP% and %TMP% indicate C:DocumentsandSettings current user name LocalSettingsTemp

How to modify the environment variable PATH in Win7 system to share with you here, if you want to modify The value of the environment variable can be modified by the above two methods. The second method of setting the environment variable is permanent and effective, and interested friends can try it out by themselves.

Copyright © Windows knowledge All Rights Reserved