I. System Properties
1. Open Environment Variables window.
-
Through Control Panel
- Go to Control Panel -> System (Win+Break).
-
Go to Advanced tab (in Windows 7 select Advanced System Settings from the left panel).
-
Press Environment Variables.
-
Using Run window
- Press Win+R
- Type the command
-
Windows XP
- “control sysdm.cpl,,3″
- press Alt+N
-
Windows 7
- “rundll32 sysdm.cpl,EditEnvironmentVariables”
-
- Enter
2. Under User variables or System variables find Path and change.
II. Command Line
-
Use the PATH command to set the path for current session only
path [new-path];%path%
- Use the SETX command to change the path permanently.
-
to set path as a User variable
setx path "%path%;[new-path]"
-
to set path as a System variable
setx /m path "%path%;[new-path]"
-
III. Registry editor
- Win+R -> “regedit”
- Go to the branch
-
To change PATH as a User variable:
HKEY_CURRENT_USER\Environment
-
To change PATH as a System variable:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
-
-
Change the PATH value.