home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / finance / ctrl-41b.zip / INSTALL4.BAT < prev    next >
DOS Batch File  |  1991-08-14  |  3KB  |  132 lines

  1. ECHO OFF
  2. IF %1==F GOTO FLOPINS
  3. IF %1==H GOTO HARDINS1
  4. CLS
  5. GO4
  6. :FLOPINS
  7. ECHO OFF
  8. CLS
  9. IF %2==1 GOTO FLOPINS1
  10. IF %2==2 GOTO FLOPINS2
  11. CLS
  12. ECHO  This floppy installation requires that you enter either a '1' or a '2',
  13. ECHO  following your 'GO F' instruction.
  14. GOTO END
  15. :FLOPINS2
  16. CLS   
  17. ECHO  Enter disk 2, SALES-B, into drive A now.
  18. ECHO  [it should still be in Drive A]
  19. PAUSE
  20. A:
  21. B:PKUNZIP -X B:SALE-C41.ZIP PROSPECT.OVL
  22. B:PKUNZIP -X B:SALE-C41.ZIP *.FRM
  23. CLS
  24. ECHO  Enter disk 3, SALESDOC, into drive A now.
  25. PAUSE 
  26. A:     
  27. B:PKUNZIP -X B:SALE-D41.ZIP SALESDOC
  28. GOTO FLOPDOC
  29. :FLOPDOC
  30. CLS 
  31. ECHO  Finished !
  32. ECHO  Disk  3,  the documentation and tutorial,  is not used while  the 
  33. ECHO  program  is  running.   It  contains a 60 page tutorial
  34. ECHO  and  can  be printed  out will this command:          
  35. ECHO                           COPY SALESDOC LPT1:  
  36. echo  
  37. ECHO  To start the program,:
  38. ECHO  Enter SALES-A, disk one, into drive A.
  39. ECHO  Enter SALES-B, disk two, into drive B.
  40. echo  
  41. ECHO  Then restart the computer and execute GO      {executed from B}
  42. GOTO END
  43. :FLOPINS1
  44. ECHO  Beginning with version 3.0 of this program, the executable files have
  45. ECHO  become so large that the low density option of 360KB is no longer supported.
  46. GOTO END
  47. :HARDINS1
  48. CLS
  49. echo  
  50. ECHO  This procedure will finish installing all files onto 
  51. ECHO  your hard disk, drive %2. 
  52. echo  
  53. %2:
  54. CD \
  55. CD PROSPECT
  56. COPY A:SALE-C41.EXE >TMP
  57. SALE-C41
  58. DEL SALE-C41.EXE
  59. COPY GO-%2.BAT GO.BAT
  60. COPY A:YESNO.COM >TMP
  61. COPY A:ECOH.COM >TMP
  62. CLS
  63. echo  
  64. ECOH ══════════    Tutorial for program    ══════════
  65. echo  
  66. ECHO  SALESDOC is the 6 chapter, 60 page tutorial.
  67. ECHO  Would you like to print it out now?
  68. echo  
  69. :YESNO
  70. YESNO
  71. CLS
  72. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YESNEXT
  73. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YESPREF
  74. GOTO YESNO
  75. :YESNEXT
  76. CLS
  77. ECHO Please make sure your printer is now turned on and set
  78. ECHO to the 'top of form'. Then press any key to continue.
  79. echo  
  80. PAUSE
  81. CLS
  82. echo  
  83. echo  
  84. ECOH ══════════ Now printing 6 chapter tutorial ══════════
  85. COPY SALESDOC LPT1:
  86. CLS
  87. GOTO YES1
  88. :YESPREF
  89. CLS
  90. echo  
  91. ECOH ══════════    Preface to Tutorial  ══════════
  92. echo  
  93. ECHO  Since you elected not to print SALESDOC,
  94. ECHO  Would you like to print the 3 page Preface to the Tutorials instead?
  95. echo  
  96. :YES2
  97. YESNO
  98. CLS
  99. IF ERRORLEVEL 89 IF NOT ERRORLEVEL 90 GOTO YES3
  100. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO YES1
  101. GOTO YES2
  102. :YES3
  103. CLS
  104. echo  
  105. echo  
  106. ECOH ══════════   Printing Preface to Tutorial  ══════════
  107. echo  
  108. COPY PREFACE.TXT LPT1: >TMP
  109. GOTO YES1
  110. :YES1
  111. CLS
  112. echo  
  113. echo  
  114. echo  
  115. ECOH ══════════ Free memory available for program ══════════
  116. echo  
  117. ECHO The program must have 500 kb free memory. Observe the next 
  118. ECHO 'bytes are free.' message below.  If below 500k, then
  119. ECHO enter a 'CONTROL-C' now to stop and remove any memory resident
  120. ECHO programs.  Otherwise enter any other key to continue.
  121. echo  
  122. echo  
  123. MEMORY
  124. echo  
  125. echo  
  126. PAUSE
  127. CLS
  128. GO
  129. GOTO END
  130. :END
  131. echo  
  132.