home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 20 / boot4.bat next >
DOS Batch File  |  1992-10-28  |  478b  |  16 lines

  1. @ECHO OFF
  2. IF "%1"=="" GOTO ERROR
  3. IF NOT EXIST C:\SYSTEM\%1.SYS GOTO ERROR
  4. IF NOT EXIST C:\SYSTEM\%1.BAT GOTO ERROR
  5. COPY C:\SYSTEM\%1.SYS C:\CONFIG.SYS >NUL
  6. COPY C:\SYSTEM\%1.BAT C:\AUTOEXEC.BAT >NUL
  7. SMARTDRV /C >NUL
  8. REBOOT
  9.  
  10. :ERROR
  11. ECHO Syntax: BOOT system, where "system" is the name of the
  12. ECHO         startup files you want to boot from, without the
  13. ECHO         .BAT or .SYS file name extension. Existing startup
  14. ECHO         files are:
  15. DIR C:\SYSTEM\*.SYS
  16.