which
Last updated
A Windows 'which' command that locates executables on the PATH.
Install with winget
$ winget install --id allankoechke.which --exact --version 1.0.0Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For Intune admins
Stop chasing app updates. Pckgr patches them for you.
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
About
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.
Installers · v1.0.0
| 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.
Security
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.
Related apps
More from Allan K. Koech or browse which, path, cli.