c:>type which.cmd
@for /F %%I in (”%1″) do @echo %%~dp$PATH:I%1
This looks for the file specified in every location listed at the PATH variable.
Pro: Nifty one-liner that acts like beloved which in *nix
Con: Requires file names with extension
Originally published at
Пустой орех желаний. You can comment here or
there.