which1.0.0

A Windows 'which' command that locates executables on the PATH.

WindowsSystem ToolsOpen source

v1.0.0

133.0 KBscanned clean

Verify your download

Select the file you downloaded to check it against the hash we published — the check runs in your browser, nothing is uploaded.

About

which reports the executable that Windows would resolve for a command, bringing the Unix which command’s behavior to the Windows command line. It reads the PATH environment variable as semicolon-separated directories, removes repeated PATH entries, and searches each directory for matches. By default, it prints the first match in PATH order, while -a or --all displays every matching instance.

Extension handling follows PATHEXT, so an extensionless query can match files such as git.exe, git.cmd, git.bat, and git.com; if PATHEXT is unavailable, .COM is used as its fallback. It also recognizes extensionless files with the exact requested name, including shell scripts, and accepts several command names in one invocation. Matches appear in green, not-found results in red, and separators in cyan, with meaningful exit codes for scripts. Color output is disabled when results are redirected to a file or pipe, when NO_COLOR is set, or when --no-color is supplied.

Published by Allan K. Koech, version 1.0.0 is open-source software for Windows 10 and newer, provided for x64 systems. Windows 10 or later supplies the console support used for ANSI colors, while source builds require CMake 3.16 or newer, Git, and a C++20 compiler; MinGW GCC 13 and MSVC are tested, and CMake fetches the argparse dependency automatically. It suits developers, administrators, and anyone diagnosing PATH conflicts or verifying which executable a script or shell command will invoke.

Architecture: x64

Details

PlatformWindows
CategorySystem Tools
LicenseOpen source
PricingFree
Package IDallankoechke.which
Latest versionv1.0.0
File typeEXE
Architecturex64
TypePortable — no installation required
File size133.0 KB
Published11/22/2026

SHA-256

Does this still work for you?

Works (0)Doesn't work (0)Sign in to vote

Badge for your website

Developers can show that which is available on MirrorNest. Copy the code below: the badge links to this page and updates itself.

which on MirrorNest
HTML
<a href="https://mirrornest.com/software/which-c79a8b9e"><img src="https://mirrornest.com/badge/which-c79a8b9e.svg" alt="which on MirrorNest" height="20"></a>
Markdown
[![which on MirrorNest](https://mirrornest.com/badge/which-c79a8b9e.svg)](https://mirrornest.com/software/which-c79a8b9e)

Reviews

No reviews yet — be the first.

Leave a review

Sign in to post as a verified member instead of anonymously.

which alternatives