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
Advertisements

About mnaoumov

Senior .NET Developer in Readify
Aside | This entry was posted in Uncategorized. Bookmark the permalink.

One Response to where.exe

  1. Pingback: where.exe PowerShell alternative | mnaoumov.NET

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s