home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1990
/
15
/
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