Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

3  
Exact duplicate (using different wording): superuser.com/questions/21067/windows-equivalent-of-whereis –  Gilles Aug 10 '10 at 22:02
add comment

2 Answers

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
add comment

Install Cygwin. In the Bash shell, type

which <command>
share|improve this answer
add comment

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