Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Windows equivalent of whereis?

On the command line in Windows you can type the name of an executable (ex. ipconfig) and it will look attempt to resolve the path to that executable by looking for it in the folders specified in your PATH environment setting.

I'm wondering how to find out where Windows found the executable. In my example, I want to know where it found and executed 'ipconfig' from.

Is there a command to find this out? Something like 'resolve ipconfig' and it would return 'C:\windows\system32\ipconfig.exe'?

share|improve this question

marked as duplicate by heavyd, random Aug 11 '10 at 3:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Exact duplicate (using different wording): – Gilles Aug 10 '10 at 22:02
up vote 0 down vote accepted

There is also a version of where.exe that will do just this that is included with Visual Studio and is available from sites online if you go looking. Easy to use and no need for the full cygwin suite (or even part of it).

share|improve this answer

Install Cygwin. In the Bash shell, type

which <command>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.