Which for Windows

Which: show the full path of (shell) commands




Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH using the same algorithm as bash.

The GnuWin32 port of Which searches for a matching file in the following sequence of directories:

If the filename given on the command line cannot be found in any of the above directories, the search is repeated with the extensions given in the environment variable PATHEXT until a match occurs. If PATHEXT is empty or does not exist, a value of ".com;.exe;.bat;.cmd" is assumed.



Sources: http://ftp.gnu.org/gnu/which


DescriptionDownloadSizeLast changeMd5sum
• Complete package, except sources Setup  511765 10 August 2008  ec0baf7363d479b38fe1cc8cc5c02908
• Sources Setup  426448 10 August 2008  776bd8c514d5399ab3818f81c14af205
• Binaries Zip  41833 10 August 2008  ad4a994a82f90f24bd0d6ac2a64696f7
• Documentation Zip  185222 10 August 2008  36d655373b5f3ca560e38b4e654bbd14
• Sources Zip  228221 10 August 2008  616804ca7704c83138accbb40e865f7c
• Original sourcehttp://ftp.gnu.org/gnu/which/which-2.20.tar.gz

You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.

Installation, Usage and Help

General Installation Instructions

GnuWin32 Help (feature requests, bugs, etc)


which,2.20,gnu,win32,win32s,win64,gnuwin32,i386,i486,i586,i686,ia64,x86-64, gnuwin64,gnuwin,mswindows,ms-windows,windows,95,98,me,nt,2000,2k,xp,2003,vista,2008