Windows 7 “open command window here” not getting updated path variable

command linepathwindows 7

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?

Best Answer

Yes... there is a much better and faster solution then Rebooting that works every time.

After you make your change to the System or User Environment vars, Kill the "Explorer.exe" shell process. Windows will restart it again and re-read the latest Environment Vars allowing the "Open Command Window Here" feature to get the new path; or any other var you added/removed/changed.

HOW TO:

launch the windows Task Manager (Ctrl+Shift+Esc) or the nicer SysInternals Tool (Process Explorer) from: https://technet.microsoft.com/en-us/sysinternals/bb896653

Find the process "Explorer.exe" and right click and select Kill Process or use the Del key shortcut

Since the Microsoft System Environment editor dialog has sucked since 1995.. I use the following tool to tweak and manage my System Global and User Local Environment Vars;

Rapid Environment Editor: (Donation/Freeware) http://www.rapidee.com/en/about

Enjoy and Good Luck.

Related Question