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.

Can you please tell me what is Windows XP equivalent of “which” command in Linux? I have tired 'where', but it does not work on Windows XP.

share|improve this question

4 Answers 4

There is no equivalent in Windows, but you can try one of these two substitutes:

http://nedbatchelder.com/code/utilities/wh_py.html (Click on "Download: wh.py")

or this guy created a script too:


share|improve this answer
I just found this, which also had another answer, not accepted, but with a +50 score: stackoverflow.com/questions/304319/… –  KCotreau Jul 20 '11 at 19:24

A bit overkill, but for completeness: Cygwin will give you which on Windows.

share|improve this answer

There are several possibilities that you can choose from:

share|improve this answer

This is actually answered on SE, in great detail:


Maybe it should be merged to Superuser, instead marked off topic on that site.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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