Others have said that the same thing can be done using the where command with Microsoft's Platform SDK kit, or cygwin, or Microsoft Unix utilities.
contents of which.bat
@echo offREM *****************************************REM "A 90-byte
"whereis" program"REM A way to find location of file like the 'which' command in
unixREM http://blogs.msdn.com/oldnewthing/archive/2005/01/20/357225.aspxREMREM
*****************************************REM one line method
REM
@echo.%~$PATH:1
@echo offREM *****************************************REM
alternative method:@for %%e in (%PATHEXT%;.dll) do @for %%i in (%~n1%%e) do @if
NOT "%%~$PATH:i"=="" echo %%~$PATH:i