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.

I have just edited my PATH variable, adding one directory at the end.

When I run CMD.EXE from the start menu and typed PATH, I could see my new directory.

But when I opened a command window by shift-right clicking a folder in windows explorer and choosing 'open command window here', and then typed PATH, I couldn't find my addition.

Why are the contents of the PATH variables different?

How do I set the PATH variable of 'open command window here' command window?

share|improve this question
Tried after a reboot? –  HaydnWVN Jul 11 '12 at 16:08

2 Answers 2

up vote 2 down vote accepted

Like @HaydnWVN said in the comment, I need to reboot the PC. After reboot the new directory appears in the path of 'open command window here'.

share|improve this answer
Any way to actually avoid the reboot? –  Byrån Mar 30 '13 at 0:00

What happens if you type echo %path% and press enter, in both Windows and compare the difference? I've just added c:\test to my System Variables, right clicked my D drive and done open prompt here then echo %path% does indeed show my extra path...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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