home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
pcmag
/
vol10n21.zip
/
REBOOT.ZIP
/
BOOT.BAT
next >
Wrap
DOS Batch File
|
1991-11-01
|
690b
|
42 lines
BOOT.BAT
@ECHO OFF
IF "%1"=="" GOTO ERROR
SET %1=$$
IF "%DOS%"=="$$" GOTO DOS
IF "%WINDOWS%"=="$$" GOTO WINDOWS
:ERROR
ECHO Syntax: BOOT DOS or WINDOWS
GOTO END
:DOS
IF EXIST \CONFIG.DOS GOTO BOOTDOS
ECHO DOS is already selected
GOTO END
:BOOTDOS
REN C:\CONFIG.SYS CONFIG.WIN
REN C:\CONFIG.DOS CONFIG.SYS
REN C:\AUTOEXEC.BAT AUTOEXEC.WIN
REN C:\AUTOEXEC.DOS AUTOEXEC.BAT
REBOOT
:WINDOWS
IF EXIST \CONFIG.WIN GOTO BOOTWINDOWS
ECHO Windows is already selected
GOTO END
:BOOTWINDOWS
REN C:\CONFIG.SYS CONFIG.DOS
REN C:\CONFIG.WIN CONFIG.SYS
REN C:\AUTOEXEC.BAT AUTOEXEC.DOS
REN C:\AUTOEXEC.WIN AUTOEXEC.BAT
REBOOT
:END
SET %1=