PATH variable is different when cmd is launched via the context menu

I just spent the last hour trying to figure out why the hell my PATH variable was not updated for my cmd.exe. Now I realized that it’s kind of like an update, but only for certain conditions ...
I updated it withWin+Break -> Change Settings -> Advanced -> Environment Variables...

Now, when I open a new command line through Win+R -> cmd -> Enter, the PATH variable shows everything that I set it.
But when I open a new command line through Shift+Rightclick into folder -> Open command window here, the PATH variable shows the outdated content.

enter image description here

My question is: why is this happening, what can I do about it?

+4
1

, , cmd cmd , explorer.exe, . , cmd.

, explorer.exe.

+4

Source: https://habr.com/ru/post/1584737/


All Articles