How to set the environment variable path

  
in win7 system

1, click on the "My Computer & Rarr; Properties & Rarr; Advanced" tag "Environment Variables" button settings;

Tips: First The way to set environment variables is only valid for the current running window. After closing the running window, the settings will not work.



Method 2:

1. Enter “cmd” in the &startquo;run ” box and press “ ” button;


2, enter "ldpath;path" in the command prompt to view the environment variable settings;


change the environment variable There are two cases:

One is the append method, that is, increasing the value of the variable without changing the existing settings of the environment variable, for example, adding a value to the environment variable "D:/Python" For the setting, you can enter “path=%path%;D:/Python”.

The other is a complete modification method. For this method, we can implement it by directly creating an environment variable.

Second: modify environment variables under win7 PATH

windows system environment variable description

%USERPROFILE% means C:DocumentsandSettings current user name

% ALLUSERSPROFILE% means C:DocumentsandSettingsAllUsers

%APPDATA% means C:DocumentsandSettings current user name ApplicationData

%ALLAPPDATA% means C:DocumentsandSettingsAllUsersApplicationData

%SYSTEMDRIVE% means C:

%HOMEDRIVE% means C:

%SYSTEMROOT% means C:WINDOWS

%WINDIR% means C:WINDOWS

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

%ProgramFiles% means C:ProgramFiles

%CommonProgramFiles% means C:ProgramFilesCommonFiles

The environment variable setting method is introduced here, hope It is helpful for users who have needs in this area.

Note: More exciting tutorials, please pay attention to the computer tutorial section, computer office group: 189034526 welcome you to join

Copyright © Windows knowledge All Rights Reserved