In windows, we can start command line via start menu [start menu >> All Programs >> Accessories >> 'Command Prompt' or just type in cmd.exe start edit box for that matter]
The 2nd way is directly from file explorer. Hold shift key down, right click in a folder and select 'Open command window here'.
Why are these two different sometimes? I mean the paths are different and for that reason sometime things work in one command prompt but will not work in the other!
For example I just installed doxygen. If I invoke command prompt via start menu, it is recognized and the doxygen command works. If I invoke it through file explorer, this command is not recognized.
I am sure this has bitten me before as well when my ssh session will work in one command prompt but not the other!
Why is there a difference and what actually is this difference? Can we make both use the same environment?
doxygen
? Any newcmd
shell should pick up the new environment. You may have to restartexplorer
to also pick up the new environment. Runset
in both cases to see if there is a difference.