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

  1. @ECHO OFF
  2. REM ONPATH2.BAT finds files anywhere on your path.
  3. IF "%1"=="" GOTO NoParams
  4. REM IF using DOS less than 3.3, replace "CALL" with
  5. REM "COMMAND /C" in the following line.
  6. FOR %%f IN (%PATH%) DO IF EXIST %%f.\%1 CALL ONPATH3 %%f.\%1
  7. GOTO End
  8. :NoParams
  9. ECHO This batch file finds a given file specification
  10. ECHO wherever it may appear on your path.
  11. ECHO Syntax: "%0 filespec" (may use wildcards)
  12. :End
  13.