home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol9n15.zip / ONPATH.BAT < prev    next >
DOS Batch File  |  1988-12-08  |  306b  |  11 lines

  1. @ECHO OFF
  2. REM ONPATH.BAT finds a file anywhere on your path.
  3. IF "%1"=="" GOTO NoParams
  4. FOR %%f IN (%PATH%) DO IF EXIST %%f.\%1 ECHO %%f.\%1
  5. GOTO End
  6. :NoParams
  7. ECHO This batch file finds a given filename
  8. ECHO wherever it may appear on your path.
  9. ECHO Syntax: "%0 FILENAME.EXT" (no wildcards)
  10. :End
  11.