home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
pcmagazi
/
1992
/
20
/
boot4.bat
next >
Wrap
DOS Batch File
|
1992-10-28
|
478b
|
16 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
SMARTDRV /C >NUL
REBOOT
:ERROR
ECHO Syntax: BOOT system, where "system" is the name of the
ECHO startup files you want to boot from, without the
ECHO .BAT or .SYS file name extension. Existing startup
ECHO files are:
DIR C:\SYSTEM\*.SYS