home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / game3 / footbal2.lzh / SETUP1.BAT < prev    next >
DOS Batch File  |  1990-09-22  |  3KB  |  81 lines

  1.    echo off
  2.    if not "%1"=="" goto SETUP
  3.    echo Command:                                     Result:
  4.    echo Setup1 {source drive:} {system drive:} {\s}  Load files from source
  5.    echo                                              to system drive subdirectory 
  6.    goto END
  7. :SETUP
  8.    if not "%1"=="" if not "%2"=="" if not "%3"=="" goto OK
  9.    echo You must specify 3 SETUP1 parameters.
  10.    goto END
  11. :OK
  12.    if exist %2config.bak echo ** ERROR ** %2CONFIG.BAK already exists.  Erase %2CONFIG.BAK first.
  13.    if exist %2config.bak goto END
  14.    echo Source drive is %1
  15.    echo System drive is %2
  16.    echo System drive subdirectory is %3
  17.    if not exist %2%3\football.exe mkdir %2%3
  18.    dir %2%3
  19.    echo Press CTRL + C to not load files.
  20.    pause
  21.    copy %1readme.1st %2%3
  22.    copy %1footbal$.exe %2%3
  23.    copy %1football.dat %2%3
  24.    copy %1football.doc %2%3
  25.    copy %1footdoc.bat %2%3
  26.    copy %1FE.bat %2
  27.    copy %1football.bat %2
  28.    copy %1setup1.bat %2
  29.    copy %1setup2.bat %2
  30.    copy %1football.mod %2
  31.    copy %1FE1.bat %2
  32.    copy %1FE2.bat %2
  33.    copy %1footcode.bin %2
  34.    copy %1register.frm %2
  35.    copy %1sdn.txt %2
  36.    echo Files have been loaded to %2 and %2%3
  37.    dir %2\FE.bat
  38.    dir %2\football.bat
  39.    dir %2%3
  40.    pause
  41.    cls
  42.    echo You can add a RAM disk to your CONFIG.SYS.
  43.    if not exist %2\dos\vdisk.sys if not exist %2\dos\ramdrive.sys echo RAM disk software missing
  44.    if not exist %2\dos\vdisk.sys if not exist %2\dos\ramdrive.sys goto END
  45.    if exist %2\dos\ramdrive.sys echo DEVICE=\DOS\RAMDRIVE.SYS 16 512 16
  46.    if exist %2\dos\vdisk.sys echo DEVICE=\DOS\VDISK.SYS 16 512 16
  47.    echo will be add to CONFIG.SYS with your OK.
  48.    echo Your current CONFIG.SYS is listed below:
  49.    echo ----------------------------------------------------
  50.    type %2config.sys
  51.    echo ----------------------------------------------------
  52.    echo Press CTRL + C to leave CONFIG.SYS as is
  53.    pause
  54.    if exist config.new erase config.new
  55.    copy %2config.sys config.new
  56.    if exist %2\dos\ramdrive.sys echo DEVICE=\DOS\RAMDRIVE.SYS 16 512 16 >> config.new
  57.    if exist %2\dos\vdisk.sys echo DEVICE=\DOS\VDISK.SYS 16 512 16 >> config.new
  58.    cls
  59.    echo You can continue to execute to
  60.    echo instantly change the CONFIG.SYS data; or,
  61.    echo you can edit your CONFIG.SYS to include the following code,
  62.    echo displayed from the file CONFIG.NEW
  63.    echo ----------------------------------------------------
  64.    type config.new
  65.    echo ----------------------------------------------------
  66.    echo Press CTRL + C to cancel the update to CONFIG.SYS
  67.    pause
  68.    if exist %2config.bak echo ** ERROR ** %2CONFIG.BAK already exists.  Erase %2CONFIG.BAK first.
  69.    if exist %2config.bak goto END
  70.    rename %2config.sys config.bak
  71.    echo Renaming the old CONFIG.SYS to CONFIG.BAK ...
  72.    copy config.new %2config.sys
  73.    erase config.new
  74.    echo ------------------------------------------------
  75.    echo Note your RAM disk designation when warm-started
  76.    echo ------------------------------------------------
  77.    echo Press ALT + CTRL + DEL to reset your machine
  78.    echo ------------------------------------------------
  79.    echo STEP1 complete ... Now execute STEP2 .......... 
  80. :END
  81.