by Rich Pasco
Revised Friday, August 27, 2004
Copyright © 2004 Richard Pasco

Which is a Windows command script which shows path to the file which gets executed when a name is entered on the command line

License is free to end users, but I retain the copyright. This program is shared "as-is" without warranty, promise of support, or liability for consequences of its use.

Calling syntax

Command-line invocation is according to the syntax:

  which command ...


  1. Download and open which.zip.
  2. Move which.bat into any directory on your command PATH.
  3. Save which.html (this file) for future reference.

Author: Rich Pasco