home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
util2
/
reboot.lzh
/
REBOOT.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-03-30
|
1KB
|
57 lines
ECHO OFF
C:
CD\CONFIG
IF '%1' == '' GOTO LISTEM
GOTO PARAMETER
:LISTEM
REM A handly utility to reconfigure your system as your needs change.
REM ─────────────────────────────────────────────────────────────────────
REM Simply create a directory named C:\CONFIG
REM Create different autoexec.bat and config.sys files for each kind of
REM configuration you need. Like one for DoubleDos, one for Turbo C, and
REM one for normal operation. Name the files like this:
REM
REM DOUBLEDO.BAT DOUBLEDO.SYS
REM TURBO_C.BAT TURBO_C.SYS ---PUBLIC DOMAIN---
REM NORMAL.BAT NORMAL.SYS
REM
REM This batch file will list the *.sys files on the screen, then enter
REM only the file name you desire to reconfigure with ... Like NORMAL .
CLS
ECHO Pick a configuration from the list below.
ECHO
DIR *.SYS
ECHO
tbu -s _d "Enter Configuration Option: "
GOTO CARRYON
:PARAMETER
SET _D=%1
:CARRYON
IF EXIST %_D%.SYS GOTO GOTCON
GOTO ERROR
:GOTCON
IF EXIST %_D%.BAT GOTO GOTBAT
GOTO ERROR
:GOTBAT
COPY %_D%.SYS C:\CONFIG.SYS >NUL
COPY %_D%.BAT C:\AUTOEXEC.BAT >NUL
echo
echo
ECHO System Configuration is now changed to %_D% .
echo Ready to Re-Boot for %_D% use.
PAUSE
:END
BOOT
:ERROR
ECHO ... Error! - %_D% - Configuration was not found.
PAUSE
GOTO LISTEM