Last updated
A Windows 'which' command that locates executables on the PATH.
$ winget install --id allankoechke.which --exact --version 1.0.0Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For IT teams
App deployment, patching, and remote support in one place. Push this app to every device you manage, keep it patched automatically, and see new CVEs the moment they land. Works with Intune or fully standalone.
Sign up freeFree for up to 5 devices.
which is a Windows implementation of the Unix which command. It scans every directory on the PATH and reports matching executables, honoring PATHEXT so extensionless queries match .exe, .cmd, .bat, and .com. By default it prints the first match; pass -a/--all to list every instance. Output is color-coded.
| Architecture | Type | Scope | Install | Download |
|---|---|---|---|---|
| x64 | Portable | - | Direct |
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
No known CVEs for which.
Coverage is best-effort and depends on a winget package mapping to an NVD CPE entry. Absence here is not a guarantee of safety.
More from Allan K. Koech or browse which, path, cli.