home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / CHECK15.ZIP / MAKEBOOT.BAT < prev    next >
DOS Batch File  |  1995-06-04  |  1KB  |  29 lines

  1. @REM MAKEBOOT.BAT - prepare a boot floppy for check/repair
  2. @REM USAGE: MAKEBOOT [options] drives
  3. @echo off
  4. if X%1 == X goto NOARGS
  5. goto ARGSOK
  6. :NOARGS
  7. echo You must specify all your harddrives on the command line
  8. echo Example: MAKEBOOT c: d:
  9. goto END
  10. :ARGSOK
  11. echo Insert an empty system disk in drive A: and press ENTER
  12. pause > nul
  13. echo Copying CHECK.EXE...
  14. copy check.exe a: > nul
  15. echo Copying REPAIR.EXE...
  16. copy repair.exe a: > nul
  17. echo @echo off > a:autoexec.cpy
  18. echo check /W a:\ /D %1 %2 %3 %4 %5 %6 %7 %8 %9 >> a:autoexec.cpy
  19. REM
  20. echo @echo off > a:autoexec.bat
  21. echo check /W a:\ /L /SD %1 %2 %3 %4 %5 %6 %7 %8 %9 >> a:autoexec.bat
  22. echo echo Please write-protect this diskette and use it >> a:autoexec.bat
  23. echo echo every once in a while to boot your computer. >> a:autoexec.bat
  24. echo echo Hang on a second till this file is copied... >> a:autoexec.bat
  25. echo copy a:autoexec.cpy a:autoexec.bat >> a:autoexec.bat
  26. REM
  27. echo Please reboot your computer from this diskette now.
  28. :END
  29.