17

Possible Duplicate:
How do I set PATH and other environment variables?

How can one set the path permanently in command-prompt. I tried using the following code :-

set path=%path%;C:\python27

It works but only until the command prompt runs. When I exit and restart, the path returns to its earlier state.

Please tell me how can I set the command path permanently in Windows 7 command prompt.

2 Answers2

12

From the Start Menu, right-click Computer on the right side. In the appearing window, select Advanced system settings in the left area - the System properties will appear. Select Environment Variables... at the bottom.

Change the Path variable there and it will be always active.

Tex Hex
  • 2,442
6

You need to do the following:

  1. Go to Control Panel --> System and Security --> System
  2. Click Advanced system settings
  3. Click Environment Variables
  4. In the System Variables area, locate the Path variable, highlight it and click Edit...
  5. Make the required changes, Click OK, OK, OK

That will save your changes permanently.

Mike Insch
  • 2,681