4

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.

michael
  • 5,755
  • 24
  • 66
  • 83
  • Possibly a duplicate of http://superuser.com/questions/207707/what-is-windows-equivalent-of-the-which-command-in-unix-is-there-an-equivale – pesche May 18 '15 at 12:01

4 Answers4

1

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

KCotreau
  • 25,519
  • 5
  • 48
  • 72
  • 1
    I just found this, which also had another answer, not accepted, but with a +50 score: http://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-windows – KCotreau Jul 20 '11 at 19:24
1

There are several possibilities that you can choose from:

JdeBP
  • 26,613
  • 1
  • 72
  • 103
0

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

Rich Homolka
  • 31,057
  • 6
  • 55
  • 80
0

This is actually answered on SE, in great detail:

https://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.

n611x007
  • 6,336
  • 14
  • 61
  • 88