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

This is actually answered on SE, in great detail:

http://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-windows

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

share|improve this answer

There are several possibilities that you can choose from:

share|improve this answer

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

share|improve this answer

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:

http://pankaj-k.net/weblog/2004/11/equivalent_of_which_in_windows.html

share|improve this answer
1  
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

Your Answer

 
discard

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.