Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I saw this question and answer but this is not working for me.

I am following Python tutorials. There is a section that requires me to change the path variable. I used the instructions in the command prompt on Windows-7. I used

echo %path%

to see the new PATH variable. It was correctly changed in the particular session of command prompt. But when I started a new session of command prompt and used

echo %path%

again to see the path variable it was unchanged.

So my question is how to change the PATH variable in WIndows-7 64-bit permanently?

share|improve this question
1  
To change your settings permanently, refer to the original question you pointed to. At the end he states "I'm currently changing variable from Advanced Systems settings > Environment Variables." That's how you do it. –  user3463 Jun 18 '13 at 4:01
    
@RandolphWest That worked. My mistake. I didn't read it completely. But is the Python documentation wrong about their commands? –  Aseem Bansal Jun 18 '13 at 4:04
    
Can't answer you there. I was responding to your very specific question on how to make environment changes permanent. Can I flag this question to close? –  user3463 Jun 18 '13 at 4:09
    
@RandolphWest Please wait a day or two. Maybe someone may answer the second part about copying from command prompt. –  Aseem Bansal Jun 18 '13 at 4:11
    
Please remove it from here and post that as a separate question. –  user3463 Jun 18 '13 at 4:13
show 1 more comment

marked as duplicate by techie007, Randolph West, Tog, Karan, mpy Jun 18 '13 at 14:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 2 down vote accepted

To change PATH variable:
Go to Advanced System Setting > Advanced Tab > Environment variable, then find the PATH variable in the list provided
See here for details:
http://www.java.com/en/download/help/path.xml
http://www.faqforge.com/windows/setting-the-path-environmental-variable-on-windows-7/
See here for some idea on how to do it through command line
How can I permanently append an entry into the system's PATH variable, via command line?
Simply changing or appending the PATH using the path command in cmd will only alter the path for that particular instance of cmd
To copy the contents of a cmd window, right click on it and click mark. Drag and select the content to copy using the mouse and paste it into your favorite word processor or notepad
If you want to send the output of path (or other cmd commands) to file, append "> aaa.txt" without the quotes after the cmd commands. aaa.txt is the file in which the output of the dos command will get written to and can be anything you want as long as it is a valid dos filename.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.