home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
09
/
boot.bat
< prev
next >
Wrap
DOS Batch File
|
1992-04-15
|
447b
|
14 lines
@ECHO OFF
IF "%1"=="" GOTO ERROR
IF NOT EXIST C:\SYSTEM\%1.SYS GOTO ERROR
IF NOT EXIST C:\SYSTEM\%1.BAT GOTO ERROR
COPY C:\SYSTEM\%1.SYS C:\CONFIG.SYS >NUL
COPY C:\SYSTEM\%1.BAT C:\AUTOEXEC.BAT >NUL
REBOOT
:ERROR
ECHO Syntax: BOOT system, where "system" is the name of the startup
ECHO files you want to boot from, without the .BAT or .SYS file
ECHO name extension. Existing startup files are:
DIR C:\SYSTEM\*.SYS