home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BUSINESS / MASS15_A.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-01-01  |  3KB  |  145 lines

  1. ECHO OFF
  2. CLS
  3. IF %1x==x GOTO NODRIVE
  4. IF %2x==x GOTO NODRIVE
  5. IF %1x==%2x GOTO NODRIVE
  6. GOTO YESDRIVE
  7.  
  8. :NODRIVE
  9. ECHO.
  10. ECHO      This routine is for installing `MASS Version 15' on a hard
  11. ECHO      disk.  If you DO NOT have one, then you will not be
  12. ECHO      able to use this software.  Sorry, but a floppy drive
  13. ECHO      version is not available.
  14. ECHO.
  15. ECHO      The `MASS Version 15' installation routine requires that
  16. ECHO      you specify two drives.  You must specify the drive you
  17. ECHO      are at now and the hard drive where you want it installed.
  18. ECHO      It must be either the C or D hard drive.
  19. ECHO .
  20. ECHO      For example, INSTALL A: C:  . . . Please try again.
  21. GOTO END
  22.  
  23. :YESDRIVE
  24. ECHO .
  25. ECHO .
  26. ECHO      This routine is for installing `MASS Version 15' on a C or D
  27. ECHO      hard disk.  If you do not want to do this at this time,
  28. ECHO      then press the "Ctrl" + "Break" keys together and then "Y"
  29. ECHO      to stop this batch file.
  30. ECHO .
  31. ECHO Otherwise . . .
  32. ECHO .
  33. PAUSE
  34. GOTO TRY1
  35.  
  36. :TRY1
  37. ECHO OFF
  38. CLS
  39. IF EXIST %1M151.EXE GOTO COPY1
  40. ECHO.
  41. ECHO.
  42. ECHO        The disk in Drive %1 is NOT disk 1.  Insert MASS Disk 1 and . . .
  43. ECHO.
  44. ECHO.
  45. PAUSE
  46. GOTO TRY1
  47.  
  48. :COPY1
  49. CD C:\
  50. IF %2==C: GOTO CBAT
  51. IF %2==c: GOTO CBAT
  52. GOTO DBAT
  53.  
  54. :CBAT
  55. COPY %1M15C.TXT C:\MASS.BAT
  56. GOTO UPNEXT
  57.  
  58. :DBAT
  59. COPY %1M15D.TXT C:\MASS.BAT
  60. GOTO UPNEXT
  61.  
  62. :UPNEXT
  63. %2
  64. MD %2\MASS15
  65. CD %2\MASS15
  66. CLS
  67. ECHO OFF
  68. ECHO .
  69. ECHO    Note:  Although `MASS Version 15' is being loaded into a sub-
  70. ECHO           directory called MASS15, you will be able to start the
  71. ECHO           program without changing directories simply by typing
  72. ECHO           MASS and pressing the Enter key.
  73. ECHO .
  74. PAUSE
  75. ECHO OFF
  76. CLS
  77. ECHO.
  78. ECHO    Please wait while loading the program files from Disk 1 . . .
  79. ECHO.
  80. ECHO.
  81.  
  82. COPY %1*.* %2
  83.  
  84. ECHO.
  85. CLS
  86. ECHO .
  87. ECHO.
  88. ECHO    Now remove Disk 1 and insert Disk 2, then . . .
  89. ECHO.
  90. ECHO .
  91. PAUSE
  92. GOTO TRY2
  93.  
  94. :TRY2
  95. ECHO OFF
  96. CLS
  97. IF EXIST %1M152.EXE GOTO COPY2
  98. ECHO.
  99. ECHO.
  100. ECHO       The disk in Drive %1 is NOT disk 2.  Insert MASS Disk 2 and . . .
  101. ECHO.
  102. ECHO.
  103. PAUSE
  104. GOTO TRY2
  105.  
  106. :COPY2
  107. ECHO .
  108. ECHO.
  109. ECHO    Please wait while loading the program files from Disk 2 . . .
  110. ECHO.
  111. ECHO.
  112.  
  113. COPY %1*.* %2
  114.  
  115. ECHO.
  116. ECHO.
  117. M151
  118. ECHO.
  119. ECHO.
  120. M152
  121. ECHO.
  122. ECHO.
  123. CD\
  124. C:
  125. CD\
  126. CLS
  127. ECHO.
  128. ECHO.
  129. ECHO.
  130. ECHO.
  131. ECHO.
  132. ECHO.
  133. ECHO      That is it!!!  You're finished.  Now place your ORIGINAL
  134. ECHO      `MASS Version 15' disks away and use your hard drive copy
  135. ECHO      to manage your business's retail sales and stock inventory
  136. ECHO      operations.
  137. ECHO .
  138. ECHO      Enter MASS to begin the program.  Refer to the operating
  139. ECHO      instructions for more details on how to use the `MASS
  140. ECHO      Version 15' program.
  141. ECHO.
  142. ECHO.
  143. GOTO END
  144. :END
  145.