Say I have a file called
calc.exe ( for example).
When I go to CMD and I run
calc.exe it runs because Windows has PATH settings in its environment variables.
Path information is also accessible via typing
path in cmd. ( as we all know).
But – Is there any command in cmd that shows me information like this :
c:\> locate_Where_It_Will_run_From calc.exe
I mean , the only solution which I see now is to run :
dir /s calc.exe
And then to match results with the PATH information .
Is there any such command which will show me the information of my example above ?