home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
19
/
rept.bat
< prev
next >
Wrap
DOS Batch File
|
1992-02-22
|
631b
|
27 lines
@echo off
if '%1'=='' goto erro
if '%2'=='' goto erro
if not exist c:\bat\%1.cmd goto erro
if not exist %2 goto erro
del temp.bat >nul
copy %2 tempfile >nul
:begin
if not exist tempfile goto exeq
copy c:\bat\%1.cmd+tempfile tempfil1 >nul
type tempfil1 | find "%1 " >>temp.bat
type tempfil1 | find /v "%1 " >tempfil1
del tempfile >nul
copy tempfil1 tempfile >nul
del tempfil1 >nul
goto begin
:erro
echo c:\bat\%1.cmd or %2 does not exist - incorrect parameters
goto exit
:exeq
type temp.bat | more
echo Press any key except Ctrl-Break to execute above commands
pause
call temp.bat
del temp.bat >nul
:exit