Where is my stuff and which is it

DuaneReade
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

Leave a Reply