home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol11n19.zip / REPT.BAT < prev    next >
DOS Batch File  |  1992-02-22  |  631b  |  27 lines

  1. @echo off
  2. if '%1'=='' goto erro
  3. if '%2'=='' goto erro
  4. if not exist c:\bat\%1.cmd goto erro
  5. if not exist %2 goto erro
  6. del temp.bat >nul
  7. copy %2 tempfile >nul
  8. :begin
  9. if not exist tempfile goto exeq
  10. copy c:\bat\%1.cmd+tempfile tempfil1 >nul
  11. type tempfil1 | find "%1 " >>temp.bat
  12. type tempfil1 | find /v "%1 " >tempfil1
  13. del tempfile >nul
  14. copy tempfil1 tempfile >nul
  15. del tempfil1 >nul
  16. goto begin
  17. :erro
  18. echo c:\bat\%1.cmd or %2 does not exist - incorrect parameters
  19. goto exit
  20. :exeq
  21. type temp.bat | more
  22. echo Press any key except Ctrl-Break to execute above commands
  23. pause
  24. call temp.bat
  25. del temp.bat >nul
  26. :exit
  27.