home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / BUSINESS / MASS20_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 20' 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 20' installation routine requires that
  16. ECHO      you specify two drives.  You must specify the drive you are
  17. ECHO      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 20' 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. CLS
  35. GOTO TRY1
  36.  
  37. :TRY1
  38. ECHO OFF
  39. CLS
  40. IF EXIST %1M201.EXE GOTO COPY1
  41. ECHO.
  42. ECHO.
  43. ECHO       The disk in Drive %1 is NOT disk 1.  Insert MASS Disk 1 and ...
  44. ECHO.
  45. ECHO.
  46. PAUSE
  47. GOTO TRY1
  48.  
  49. :COPY1
  50. CD C:\
  51. IF %2==C: GOTO CBAT
  52. IF %2==c: GOTO CBAT
  53. GOTO DBAT
  54.  
  55. :CBAT
  56. COPY %1M20C.TXT C:\MASS.BAT
  57. GOTO UPNEXT
  58.  
  59. :DBAT
  60. COPY %1M20D.TXT C:\MASS.BAT
  61. GOTO UPNEXT
  62.  
  63. :UPNEXT
  64. %2
  65. MD %2\MASS20
  66. CD %2\MASS20
  67. CLS
  68. ECHO OFF
  69. ECHO .
  70. ECHO    Note:  Although `MASS Version 20' is being loaded into a sub-
  71. ECHO           directory called MASS20, you will be able to start the
  72. ECHO           program without changing directories simply by typing
  73. ECHO           MASS and pressing the Enter key.
  74. ECHO .
  75. PAUSE
  76. CLS
  77. ECHO .
  78. ECHO.
  79. ECHO    Please wait while loading the program files . . .
  80. ECHO.
  81. ECHO.
  82.  
  83. COPY %1*.* %2
  84.  
  85. CLS
  86. ECHO .
  87. ECHO.
  88. ECHO    Now remove Disk 1 and insert installation Disk 2.  Then . . .
  89. ECHO.
  90. PAUSE
  91. GOTO TRY2
  92.  
  93. :TRY2
  94. ECHO OFF
  95. CLS
  96. IF EXIST %1M202.EXE GOTO COPY2
  97. ECHO.
  98. ECHO.
  99. ECHO       The disk in Drive %1 is NOT disk 2.  Insert MASS Disk 2 and ...
  100. ECHO.
  101. ECHO.
  102. PAUSE
  103. GOTO TRY2
  104.  
  105. :COPY2
  106. CLS
  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. M201
  118. ECHO.
  119. ECHO.
  120. M202
  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 20' disk away and use your hard drive copy
  135. ECHO      to manage your business's work orders and parts 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 20' program.
  141. ECHO.
  142. ECHO.
  143. GOTO END
  144. :END
  145.