home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / educ / pres1.zip / P_INSTAL.BAT next >
DOS Batch File  |  1980-01-01  |  6KB  |  143 lines

  1. echo off
  2. rem
  3. rem  P-INSTAL.BAT for The Presidents A & B
  4. rem
  5. cls
  6. if x%1==x goto di-rections
  7. if x%2==x goto di-rections
  8. if not exist %1PRES_B.EXE goto error
  9. if not exist %1PRES_A.EXE goto error
  10. if not exist %1P_README.1ST goto error
  11. if %2==b: goto small-disk
  12. if %2==B: goto small-disk
  13. goto big-disk
  14. rem Display Install help if drive data are wrong
  15. :di-rections
  16. echo   ╒════════════════════════╗       ╔════════════════════════════════════╕
  17. echo   │ Installation Procedure ║       ║ Syntax: INSTALL drive1  drive2     │
  18. echo   ├────────────────────────╨───────╨────────────────────────────────────┤
  19. echo   │ The Install procedure must be from one drive to another.            │
  20. echo   │ The distribution disk must be placed in drive1.  The Install        │
  21. echo   │ program will expand the files to drive2.                            │
  22. echo   ╞═════════════════════════════════════════════════════════════════════╡
  23. echo   │ If you use a Dual Floppy 360k system you will need to prepare two   │
  24. echo   │ formatted diskettes.  Label one of the disk PRESIDENT A and the     │
  25. echo   │ PRESIDENT B.  When ready place the distribution disk in drive A:    │
  26. echo   │ type ....  INSTALL A: B:                                            │
  27. ECHO   ╞═════════════════════════════════════════════════════════════════════╡
  28. echo   │ For a Hard Disk or a 720k+ system you will require at least 700K    │
  29. echo   │ for the subdirectory \PRES that will be created.  When ready place  │
  30. echo   │ the distribution disk in drive A: (or B:) and type "from" - "to":   │
  31. echo   │    INSTALL A: C: (program material from A: to hard disk C:)  or     │
  32. echo   │    INSTALL B: C: (program material from B: to hard disk C:)  or     │
  33. echo   │    INSTALL A: B: (program material from A: to 360 or 720K+ disk B:) │
  34. echo   ╞═════════════════════════════════════════════════════════════════════╡
  35. echo   │ NOTE:  The INSTALL batch file will supply supplemental instructions.│
  36. echo   ╘═════════════════════════════════════════════════════════════════════╛
  37. pause
  38. cls
  39. goto exit_bat
  40. rem *** routine for hard disk installation procedure ***
  41. :big-disk
  42. cls
  43. echo   ╒══════════════════════════════════════════════════════════╕
  44. echo   │ You have chosen to install the President files           │
  45. echo   │ from drive "%1" to drive "%2" fixed disk.                │
  46. echo   ├──────────────────────────────────────────────────────────┤
  47. echo   │ Remember, the Destination drive %2 must have 700K free.  │
  48. echo   ├──────────────────────────────────────────────────────────┤
  49. echo   │ If you wish to change your mind press "CTRL+BREAK" now.  │
  50. echo   ├──────────────────────────────────────────────────────────┤
  51. echo   │ Otherwise ....                                           │
  52. echo   ╘══════════════════════════════════════════════════════════╛
  53. echo:
  54. pause
  55. %2
  56. cls
  57. echo      ┌──────────────────────────────────────┐
  58. echo      │   Creating \PRES directory on "%2".  │
  59. echo      └──────────────────────────────────────┘
  60. cd \
  61. md PRES
  62. cd \PRES
  63. echo      ┌────────────────────────────────────────┐
  64. echo      │   Extracting files .................   │
  65. echo      │   This may take a few moments....      │
  66. echo      └────────────────────────────────────────┘
  67. COPY %1P_README.1st %2
  68. %1PRES_A
  69. %1PRES_B
  70. dir /w %2
  71. pause
  72. goto done
  73. rem
  74. rem *** Installation procedure for 360K - 720k+ diskette ***
  75. rem
  76. :small-disk
  77.  
  78. cls
  79. echo  ╔══════════╦═════════════════════════════════════════════════════════╗
  80. echo  ║  FLOPPY  ║ It is assumed you have chosen to install the files      ║
  81. echo  ║  INSTALL ║ from Drive A: to a 360K or 720k+ disk on Drive B:       ║
  82. echo  ╠══════════╩═════════════════════════════════════════════════════════╣
  83. echo  ║  Remember - you should have diskettes formatted and prepared       ║
  84. echo  ║  labeled PRES_A (& PRES_B).  Press CTRL+BREAK if not ready, else...║
  85. echo  ╠════════════════════════════════════════════════════════════════════╣
  86. echo  ║  Put distribution disk in drive A: & Disk PRES_A in Drive B: and ..║
  87. echo  ╚════════════════════════════════════════════════════════════════════╝
  88. echo:
  89. pause
  90. cls
  91. echo   ┌────────────────────────────────────────┐
  92. echo   │ Extracting QUIZPRES & TEST files ....  │
  93. echo   │ This may take a few moments .........  │
  94. echo   └────────────────────────────────────────┘
  95. %2
  96. COPY %1P_README.1ST %2
  97. %1pres_A
  98. dir /w %2
  99. pause
  100. cls
  101. echo  ╔═══════════════════════════════════════════════════════════════╗
  102. echo  ║  If a 360k disk:  Remove PRES_A disk from drive B:            ║
  103. echo  ║                   Replace it with the PRES_B disk,  or  ...   ║
  104. echo  ║===============================================================║
  105. echo  ║  If a 720k+ disk: No need to remove the disk. Just .........  ║
  106. echo  ╚═══════════════════════════════════════════════════════════════╝
  107. echo:
  108. pause
  109. echo   ┌────────────────────────────────────────┐
  110. echo   │ Extracting BIOGRAPHY files ..........  │
  111. echo   │ This may take a few moments .........  │
  112. echo   └────────────────────────────────────────┘
  113. %1PRES_B
  114. dir /w %2
  115. pause
  116. :done
  117. cls
  118. echo      ┌─────────────────────────────────────────────────────────┐
  119. echo      │ BRAVO ... The installation procedure has been complete! │
  120. echo      └─────────────────────────────────────────────────────────┘
  121. echo:
  122. echo:
  123. echo   ╔═════════════════════════════╤═════════════════════════════════╗
  124. echo   ║ The document may be printed.│          : PRINT PRES.DOC       ║
  125. echo   ║ or listed to the screen.....│by typing : TYPE  PRES.DOC       ║
  126. echo   ║ The programs may be run.....│          : QUIZPRES             ║
  127. ECHO   ║ OR .........................│          : READPRES             ║
  128. echo   ╚═════════════════════════════╧═════════════════════════════════╝
  129. GOTO EXIT_BAT
  130. :ERROR
  131. CLS
  132. echo 
  133. echo 
  134. echo d
  135. echo:
  136. echo       ************************************************************
  137. ECHO       * We have not found the correct files on drive %1. Please  *
  138. echo       * place the distribution disk in drive %1 and start over.  *
  139. echo       ************************************************************
  140. echo 
  141. pause
  142. :exit_bat
  143.