home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pcmagazi / 1992 / 09 / boot.bat < prev    next >
DOS Batch File  |  1992-04-15  |  447b  |  14 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. REBOOT
  8.  
  9. :ERROR
  10. ECHO Syntax: BOOT system, where "system" is the name of the startup
  11. ECHO         files you want to boot from, without the .BAT or .SYS file
  12. ECHO         name extension.  Existing startup files are:
  13. DIR C:\SYSTEM\*.SYS
  14.