Versions:

  • 2.20

Which for Windows 2.20, released by the GnuWin32 project, is a lightweight command-line utility whose sole purpose is to reveal the exact location of executable files that the operating system would invoke when a given command is typed at the prompt. By replicating the search algorithm used by the GNU bash shell, the program interrogates the directories listed in the PATH environment variable in strict order—starting with the current directory—and prints the first match it finds for each argument supplied. If the supplied name lacks an extension, Which automatically appends the suffixes stored in PATHEXT (.com, .exe, .bat, .cmd by default) and repeats the scan, ensuring that batch files, console utilities, and other callable scripts are located even when the user omits their file ending. System administrators, developers, and power users employ the tool to debug ambiguous command resolution, verify which copy of a utility will run when multiple versions exist, audit PATH ordering, or document the executable dependencies of legacy scripts. Because it emits only fully qualified paths to standard output, the utility is easily scripted within larger automation workflows, CI pipelines, or diagnostic batch jobs. The current release is version 2.20, the only edition published under the GnuWin32 label, and it remains compatible with every NT-based Windows platform. The software is available for free on get.nero.com, with downloads provided via trusted Windows package sources (e.g. winget), always delivering the latest version, and supporting batch installation of multiple applications.

Tags: