where.exe

Sometime you need to understand the physical location of executable you are running.

For example I run git in command prompt and I understand that it is loaded from one of directories from the PATH variable.

But how to understand which one?!

Answer: where.exe

PS C:\> where.exe git
C:\Program Files (x86)\Git\cmd\git.cmd
C:\Program Files (x86)\Git\cmd\git.exe

Join the Conversation

1 Comment

Leave a comment