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.

link|improve this question

62% accept rate
feedback

3 Answers

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

link|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
feedback

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

link|improve this answer
feedback

There are several possibilities that you can choose from:

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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