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

  1. @REM INSTALL.BAT - adds CHECK to your AUTOEXEC.BAT
  2. @echo off
  3. if X%1 == X goto NOARGS
  4. goto ARGSOK
  5. :NOARGS
  6. echo You must specify path for the CHECK data files
  7. echo and all your harddrives on the command line.
  8. echo Please do not use a \ at the end of the path.
  9. echo Example: INSTALL c:\chkdata c: d:
  10. goto END
  11. :ARGSOK
  12. if not exist %1\AUTOEXEC.OLD goto FIRST
  13. goto SECOND
  14. :FIRST
  15. mkdir %1
  16. echo Copying C:\AUTOEXEC.BAT to %1\AUTOEXEC.OLD...
  17. copy c:\AUTOEXEC.BAT %1\AUTOEXEC.OLD > nul
  18. echo CHECK /W %1 /L /SD %2 %3 %4 %5 %6 %7 %8 %9 >> c:\autoexec.bat
  19. echo Now please copy CHECK.EXE and REPAIR.EXE to some of the
  20. echo directory in your path (%PATH%)
  21. echo Then reboot your computer, change to:
  22. cd
  23. echo and execute again:
  24. echo INSTALL %1 %2 %3 %4 %5 %6 %7 %8 %9
  25. goto END
  26. :SECOND
  27. echo Copying %1\AUTOEXEC.OLD to C:\AUTOEXEC.BAT...
  28. copy %1\AUTOEXEC.OLD C:\AUTOEXEC.BAT > nul
  29. echo CHECK /W %1 /D %2 %3 %4 %5 %6 %7 %8 %9 >> c:\autoexec.bat
  30. :END
  31.