home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1991
/
10
/
edloop.bat
< prev
next >
Wrap
DOS Batch File
|
1991-01-30
|
734b
|
33 lines
@echo off
rem EDLOOP.BAT -- creates a batch file to repetitively execute a
rem series of commands. In this case ring the doorbell.
if "%1"=="" goto NEEDNUMB
rem Open the file ring.bat with the statements to be reiterated
echo echo DING DONG > ring.bat
rem Create input for the Edlin script
rem Use the count option & delete the first existence
echo 1,1,1,%1c > edlininp.dat
echo 1d >> edlininp.dat
echo e >>edlininp.dat
edlin ring.bat < edlininp.dat >nul
rem Run the reiterative batch job & tidy up
call ring.bat
erase edlininp.dat
erase ring.*
goto DONE
:NEEDNUMB
ECHO The syntax should be
ECHO EDLOOP n
ECHO where n is the number of iterations
:DONE