home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / 100UTILI / BANNER.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-07-04  |  7KB  |  248 lines

  1.     echo off
  2.     cls
  3.     if %1 == DeSkMaTe goto deskmate
  4.     if not '%1' == '' goto nohelp
  5. :help
  6.     cls
  7.     echo If you have two floppy disk drives, you can install BannerMania
  8.     echo directly onto a floppy disk.  To do so, insert a blank, formatted
  9.     echo disk into the drive that doesn't contain this disk and type:
  10.     echo  
  11.     echo         INSTALL A:
  12.     echo  
  13.     echo If the blank disk is in drive A, or:
  14.     echo  
  15.     echo         INSTALL B:
  16.     echo  
  17.     echo If the blank disk is in drive B.
  18.     echo  
  19.     echo  
  20.     echo To install BannerMania on a hard disk, type:
  21.     echo  
  22.     echo         INSTALL x:
  23.     echo  
  24.     echo Where "x" is the letter of the hard disk (C-J).  A subdirectory will be
  25.     echo created on your hard disk to hold the BannerMania files.  The default
  26.     echo name of this subdirectory is "\BANNER".  To specify a different name,
  27.     echo enter it on the command line following the drive letter.  For example:
  28.     echo  
  29.     echo         INSTALL C: \BMAN    (The space between C: and \BMAN is required!)
  30.     goto end
  31. :nohelp
  32.     cls
  33.     echo  
  34.     echo INSTALL %1 %2
  35.     echo  
  36.     echo BannerMania version 1.10 Installation Procedure
  37.     echo  
  38.     if %1 == a: goto floppy
  39.     if %1 == A: goto floppy
  40.     if %1 == b: goto floppy
  41.     if %1 == B: goto floppy
  42.         if %1 == c: goto hard
  43.     if %1 == C: goto hard
  44.     if %1 == d: goto hard
  45.     if %1 == D: goto hard
  46.     if %1 == e: goto hard
  47.     if %1 == E: goto hard
  48.     if %1 == f: goto hard
  49.     if %1 == F: goto hard
  50.     if %1 == g: goto hard
  51.     if %1 == G: goto hard
  52.     if %1 == h: goto hard
  53.     if %1 == H: goto hard
  54.     if %1 == i: goto hard
  55.     if %1 == I: goto hard
  56.     if %1 == j: goto hard
  57.     if %1 == J: goto hard  
  58. :badparm
  59.     echo     * YOU HAVE TYPED INVALID PARAMETERS *
  60.     echo  
  61.     echo     The letter of the drive on which to install
  62.     echo     BannerMania must be in the range of A through J.
  63.     echo     You must type a colon after the drive letter.
  64.     echo  
  65.     echo     If you wish to specify a hard disk sub-directory other than "\BANNER",
  66.     echo     you must type a space between the drive letter and the directory name.
  67.     echo  
  68.     echo     Remember too that if you specify a directory name without a leading
  69.     echo     backslash, the sub-directory will be created inside the specified
  70.     echo     drive's current directory.
  71.     echo  
  72.     pause
  73.     goto help
  74. :hard
  75.     if not '%2' == '' goto custom
  76. :default
  77.     if not exist %1\BANNER goto mk_defl
  78.     echo     * A FILE CALLED "%1\BANNER" ALREADY EXISTS *
  79.     echo  
  80.     echo     Please delete "%1\BANNER" or specify a
  81.     echo     different sub-directory name and try again.
  82.     goto end
  83. :mk_defl
  84.     echo A sub-directory called %1\BANNER will be created.
  85.     echo The BannerMania files will be copied into it.
  86.     echo  
  87.     echo To cancel installation at any time,
  88.     echo hold down the [Ctrl] key and press [C].
  89.     echo  
  90.     pause
  91.     echo  
  92.     echo Creating %1\BANNER ...
  93.     md %1\BANNER > nul
  94.     echo  
  95.     echo Copying the program ...
  96.     copy *.EXE %1\BANNER /V
  97.     if not exist %1\BANNER\BANNER.EXE goto diskfull
  98.     echo Copying printer driver files ...
  99.     copy BANNER.P* %1\BANNER /V
  100.     if not exist %1\BANNER\BANNER.PRD goto diskfull
  101.     echo Copying font files ...
  102.     copy *.FNT %1\BANNER /V
  103.     if not exist %1\BANNER\ZURICH.FNT goto diskfull
  104.     echo Copying ready-made banner file ...
  105.     copy *.BRM %1\BANNER /V
  106.     if not exist %1\BANNER\BANNER.BRM goto diskfull
  107.     echo  
  108.     echo All Done!
  109.     echo  
  110.     echo To run BannerMania, type:
  111.     echo  
  112.     echo         %1
  113.     echo         CD \BANNER
  114.     goto done
  115. :custom
  116.     if not exist %1%2 goto mk_cust
  117.     echo     * A FILE CALLED "%1%2" ALREADY EXISTS *
  118.     echo  
  119.     echo     Please delete "%1%2" or choose a
  120.     echo     different sub-directory name and try again.
  121.     goto end
  122. :mk_cust
  123.     echo A sub-directory called %1%2 will be created.
  124.     echo The BannerMania files will be copied into it.
  125.     echo  
  126.     echo To cancel installation at any time,
  127.     echo hold down the [Ctrl] key and press [C].
  128.     echo  
  129.     pause
  130.     echo  
  131.     echo Creating %1%2 ...
  132.     md %1%2 > nul
  133.     echo  
  134.     echo Copying the program ...
  135.     copy *.EXE %1%2 /V
  136.     if not exist %1%2\BANNER.EXE goto diskfull
  137.     echo Copying printer driver files ...
  138.     copy BANNER.P* %1%2 /V
  139.     if not exist %1%2\BANNER.PRD goto diskfull
  140.     echo Copying font files ...
  141.     copy *.FNT %1%2 /V
  142.     if not exist %1%2\ZURICH.FNT goto diskfull
  143.     echo Copying ready-made banner file ...
  144.     copy *.BRM %1%2 /V
  145.     if not exist %1%2\BANNER.BRM goto diskfull
  146.     echo  
  147.     echo All Done!
  148.     echo  
  149.     echo To run BannerMania, type:
  150.     echo  
  151.     echo         %1
  152.     echo         CD %2
  153.     goto done
  154. :floppy
  155.     if '%2' == '' goto floppyok
  156. :nosubdir
  157.     echo     * YOU HAVE TYPED AN UNEXPECTED SECOND PARAMETER *
  158.     echo  
  159.     echo     You may not install BannerMania in a
  160.     echo     sub-directory of a floppy disk.
  161.     echo  
  162.     pause
  163.     goto help
  164. :floppyok
  165.     echo All files on the floppy disk in drive %1 will be erased.
  166.     echo The BannerMania files will be copied onto it.
  167.     echo  
  168.     echo If you do NOT want this disk erased,
  169.     echo or to cancel installation at any time,
  170.     echo hold down the [Ctrl] key and press [C].
  171.     echo  
  172.     pause
  173.     echo  
  174.     echo Erasing the floppy disk:
  175.     del %1\*.* > nul
  176.     echo  
  177.     echo Copying the program ...
  178.     copy *.EXE %1 /V
  179.     if not exist %1\BANNER.EXE goto diskfull
  180.     echo Copying printer driver files ...
  181.     copy BANNER.P* %1 /V
  182.     if not exist %1\BANNER.PRD goto diskfull
  183.     echo Copying font files ...
  184.     copy *.FNT %1 /V
  185.     if not exist %1\ZURICH.FNT goto diskfull
  186.     echo Copying ready-made banner file ...
  187.     copy *.BRM %1 /V
  188.     if not exist %1\BANNER.BRM goto diskfull
  189.     echo  
  190.     echo All Done!
  191.     echo  
  192.     echo To run BannerMania, type:
  193.     echo  
  194.     echo         %1
  195. :done
  196.     echo         BANNER
  197.     goto end
  198. :diskfull
  199.     echo  
  200.     echo  
  201.     echo Installation was NOT successful.
  202.     echo The disk, %1 doesn't exist or is too
  203.     echo full to hold BannerMania's files.
  204.     echo  
  205.     echo Please free up at least 360K on %1 or
  206.     echo install BannerMania on a different disk.
  207.     echo  
  208.     goto end
  209. :deskmate
  210.     echo BannerMania will be installed
  211.     echo into the current directory.
  212.     echo  
  213.     echo To cancel installation at any time,
  214.     echo hold down the [Ctrl] key and press [C].
  215.     echo  
  216.     pause
  217.     echo Copying the program ...
  218.     copy A:*.EXE /V
  219.     if not exist BANNER.EXE goto deskfull
  220.     echo Copying printer driver files ...
  221.     copy A:BANNER.P* /V
  222.     if not exist BANNER.PRD goto deskfull
  223.     echo Copying font files ...
  224.     copy A:*.FNT /V
  225.     if not exist ZURICH.FNT goto deskfull
  226.     echo Copying ready-made banner file ...
  227.     copy A:*.BRM /V
  228.     if not exist BANNER.BRM goto deskfull
  229.     echo    
  230.     echo BannerMania has been installed!
  231.     echo    
  232.     pause
  233.     goto end
  234. :deskfull
  235.     echo  
  236.     echo  
  237.     echo Installation of BannerMania was NOT Successful.
  238.     echo Your disk may be too
  239.     echo full to hold BannerMania's files.
  240.     echo  
  241.     echo Please free up at least 360K on the current
  242.     echo disk or install BannerMania on a different disk.
  243.     echo  
  244.     echo  
  245.     pause
  246. :end
  247.     echo  
  248.