Accurate Windows equivalent of the Unix which(1) command [duplicate]

I use gnuwin32 which :-)

The GnuWin32 port of Which searches for a matching file in the following sequence of directories:

* The current directory.
* The directories that are listed in the PATH environment variable