home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / util2 / reboot.lzh / REBOOT.BAT < prev    next >
DOS Batch File  |  1989-03-30  |  1KB  |  57 lines

  1.   ECHO OFF
  2.   C:
  3.   CD\CONFIG
  4.   IF '%1' == '' GOTO LISTEM
  5.   GOTO PARAMETER
  6.  
  7. :LISTEM
  8.   REM    A handly utility to reconfigure your system as your needs change.
  9.   REM   ─────────────────────────────────────────────────────────────────────
  10.   REM   Simply create a directory named C:\CONFIG
  11.   REM   Create different autoexec.bat and config.sys files for each kind of
  12.   REM   configuration you need. Like one for DoubleDos, one for Turbo C, and
  13.   REM   one for normal operation. Name the files like this:
  14.   REM
  15.   REM      DOUBLEDO.BAT DOUBLEDO.SYS
  16.   REM      TURBO_C.BAT  TURBO_C.SYS                 ---PUBLIC DOMAIN---
  17.   REM      NORMAL.BAT   NORMAL.SYS
  18.   REM
  19.   REM   This batch file will list the *.sys files on the screen, then enter
  20.   REM   only the file name you desire to reconfigure with ... Like  NORMAL .
  21.   CLS
  22.   ECHO     Pick a configuration from the list below.
  23.   ECHO  
  24.   DIR *.SYS
  25.   ECHO  
  26.   tbu -s _d "Enter Configuration Option: "
  27.   GOTO CARRYON
  28.  
  29. :PARAMETER
  30.   SET _D=%1
  31.  
  32.  
  33. :CARRYON
  34.   IF EXIST %_D%.SYS GOTO GOTCON
  35.   GOTO ERROR
  36.  
  37. :GOTCON
  38.   IF EXIST %_D%.BAT GOTO GOTBAT
  39.   GOTO ERROR
  40.  
  41. :GOTBAT
  42.   COPY %_D%.SYS C:\CONFIG.SYS    >NUL
  43.   COPY %_D%.BAT C:\AUTOEXEC.BAT  >NUL
  44.   echo  
  45.   echo  
  46.   ECHO System Configuration is now changed to  %_D%  .
  47.   echo Ready to Re-Boot for %_D% use.
  48.   PAUSE
  49.  
  50. :END
  51.   BOOT
  52.  
  53. :ERROR
  54.   ECHO ... Error!  - %_D% - Configuration was not found.
  55.   PAUSE
  56.   GOTO LISTEM
  57.