home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
pcmag
/
v9n15.lzh
/
ONPATH.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-12-08
|
306b
|
11 lines
@ECHO OFF
REM ONPATH.BAT finds a file anywhere on your path.
IF "%1"=="" GOTO NoParams
FOR %%f IN (%PATH%) DO IF EXIST %%f.\%1 ECHO %%f.\%1
GOTO End
:NoParams
ECHO This batch file finds a given filename
ECHO wherever it may appear on your path.
ECHO Syntax: "%0 FILENAME.EXT" (no wildcards)
:End