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:
- The current directory.
- The directories that are listed in the PATH environment variable.
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.
Publisher’s description
What is Which for Windows?
Which for Windows by GnuWin32 is open-source Windows software.
Installation and requirements
The publisher provides Portable installers for 32-bit Windows. The main installer is 42 KB. It runs without installation (portable).
Pros / Cons
Pros
- Open source: the code can be inspected and built by anyone
- Portable: runs without installation
- Small download (42 KB)
Cons
- No native ARM64 build
- 32-bit only
- No update for more than a year
In short: Which for Windows is an open-source Windows tool for 32-bit PCs. Updates have slowed down.
Is Which for Windows safe to download?
- The file is served by sourceforge.net, the publisher’s own domain
- The download link uses HTTPS
- A SHA256 hash is published, so you can verify the file:
035EC15541649F75459FB81F02406C72E1129FC9041B308160938AE712A603A4· Open the VirusTotal report for this hash - The link answered when we last checked it (October 22, 2026)
- The source code is public
- ExeAtlas does not host, wrap or modify installers
Related guide: How to check a file’s SHA256 hash on Windows
Recent versions
All 1 versions ›| Version | Date | Size | Files |
|---|---|---|---|
| 2.20Latest | July 10, 2023 | 42 KB | 32-bit ZIP |
Install from the command line
Silent install ›winget install --id GnuWin32.Which -eRelated guide: How to use winget: install and update apps
Information
- Publisher
- GnuWin32
- Licence
- GnuWin License
- Price
- Free
- Requires
- Windows 11 / 10
- Architecture
- 32-bit
- Installer
- Portable
- Version
- 2.20
- Released
- July 10, 2023
- Added to the catalogue
- July 10, 2023
- Versions listed
- 1
- Website
- gnuwin32.sourceforge.net
- winget ID
- GnuWin32.Which
Ratings and reviews
No reviews yet. Be the first to rate it.
Frequently asked questions
Is Which for Windows free?
Yes. Which for Windows is open-source software under the GnuWin License licence.
Is Which for Windows safe to download?
The download comes from sourceforge.net, which belongs to the publisher; ExeAtlas does not host or change the file. Compare its SHA256 hash with the one shown here, or open the VirusTotal report for that hash.
How do I install Which for Windows with winget?
Open PowerShell or Windows Terminal and run the winget command shown on this page. winget downloads the official installer and checks its SHA256 hash before running it.
Does Which for Windows run on ARM (Windows on Arm)?
There is no ARM64 build; Windows 11 on Arm can run the 32-bit version through emulation.
Can I use Which for Windows without administrator rights?
Yes, it is portable: unpack and run it.