How to modify the environment variable PATH in Win7 system

  
Method 1. Set the environment variable
1, open “start →run”, in the run box “cmd”, press Enter to open the command prompt window;
2, in the open command prompt In the character window, enter “path”, press Enter to view the environment variable settings;
3, change the environment variable in two cases: First, the append method, that is, without changing the existing settings of the environment variable, Increase the value of the variable, for example, to add a value to the environment variable, "D: Python", you can enter "ldpath;%=%path%;D:Python"; and the other is completely modified, for this The way we can do this 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, right click on the computer to select the attribute, and then click “ advanced system settings & rdquo;, in the open system properties window, switch to “ advanced & rdquo; Tab, then the "environment variable" button;

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% means 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:
%TEMP% and %TMP% means C:DocumentsandSettings current user name LocalSettingsTemp
How to modify the environment variable PATH in Win7 system Share this, if you want to modify the value of the environment variable, you can modify it by the above two methods. The second method is to set the environment variable permanently, and interested friends can do it yourself. Give it a try

Copyright © Windows knowledge All Rights Reserved