home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / utility / ams400.zip / AMS400.EXE / INSTALL.BAT < prev   
DOS Batch File  |  1992-01-30  |  4KB  |  162 lines

  1. @echo off
  2. if A==%1 goto doit
  3. if B==%1 goto doit
  4. if C==%1 goto doit
  5. if D==%1 goto doit
  6. if E==%1 goto doit
  7. if F==%1 goto doit
  8. if G==%1 goto doit
  9. if H==%1 goto doit
  10. if I==%1 goto doit
  11. if J==%1 goto doit
  12. if K==%1 goto doit
  13. if L==%1 goto doit
  14. if M==%1 goto doit
  15. if N==%1 goto doit
  16. if O==%1 goto doit
  17. if P==%1 goto doit
  18. if Q==%1 goto doit
  19. if R==%1 goto doit
  20. if S==%1 goto doit
  21. if T==%1 goto doit
  22. if U==%1 goto doit
  23. if V==%1 goto doit
  24. if W==%1 goto doit
  25. if X==%1 goto doit
  26. if Y==%1 goto doit
  27. if Z==%1 goto doit
  28. if a==%1 goto doit
  29. if b==%1 goto doit
  30. if c==%1 goto doit
  31. if d==%1 goto doit
  32. if e==%1 goto doit
  33. if g==%1 goto doit
  34. if h==%1 goto doit
  35. if i==%1 goto doit
  36. if j==%1 goto doit
  37. if k==%1 goto doit
  38. if l==%1 goto doit
  39. if m==%1 goto doit
  40. if n==%1 goto doit
  41. if o==%1 goto doit
  42. if p==%1 goto doit
  43. if q==%1 goto doit
  44. if r==%1 goto doit
  45. if s==%1 goto doit
  46. if t==%1 goto doit
  47. if u==%1 goto doit
  48. if v==%1 goto doit
  49. if w==%1 goto doit
  50. if x==%1 goto doit
  51. if y==%1 goto doit
  52. if z==%1 goto doit
  53. goto goof1
  54. :doit
  55. if exist %1:\ams\amsfhhhh.dbf goto goof2
  56. if exist %1:\amsfaaaa.dbf goto goof3
  57. cls
  58. ECHO.
  59. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  60. ECHO.
  61. ECHO.
  62. ECHO                    Welcome to the Action Management System!
  63. ECHO.
  64. ECHO     This batch file installs the Action Management System.  It will create
  65. ECHO  a directory, \AMS, on disk drive %1 which you have designated.  It will then
  66. ECHO  install the program files in the new directory.  A batch file named AMS.BAT
  67. ECHO  will be placed in the root directory to start AMS.  Finally it will start
  68. ECHO  AMS and ask a few questions to configure the program for your computer
  69. ECHO  system and then enter the AMS program.  The AMS program may be started from
  70. ECHO  the DOS prompt by typing the following:
  71. ECHO.
  72. ECHO.                                   AMS
  73. ECHO.
  74. ECHO  If you want to terminate the installation process press (Ctrl) and (C) to
  75. ECHO  exit to DOS otherwise press any other key to continue.
  76. ECHO.
  77. ECHO.
  78. ECHO.
  79. PAUSE
  80. CLS
  81. ECHO.
  82. ECHO.
  83. ECHO            THE ACTION MANAGEMENT SYSTEM IS BEING INSTALLED.
  84. @ REM ---Installation routine
  85. md %1:\ams
  86. copy ams.exe %1:\ams
  87. copy amsf.dbf %1:\ams\amsfaaaa.dbf
  88. copy amsdemo?.* %1:\ams
  89. copy amszap.bat %1:\ams
  90. copy ams.bat %1:\
  91. %1:
  92. cd %1:\ams
  93. ams
  94. cd \
  95. cls
  96. ECHO.
  97. ECHO.
  98. ECHO          THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY INSTALLED.
  99. goto end
  100. @ REM ---Goof 1 - No Target drive designated
  101. :goof1
  102. cls
  103. ECHO.
  104. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  105. ECHO.
  106. ECHO.
  107. ECHO.
  108. ECHO     This batch file installs the Action Management System.  To start the
  109. ECHO  installation process you must designate a drive into which AMS will be
  110. ECHO  installed.  This is accomplished by entering the install command followed
  111. ECHO  by the letter designating the drive into which AMS to to be installed.
  112. ECHO  To install AMS on drive C and the installation enter the following
  113. ECHO  command at the DOS prompt:
  114. ECHO.
  115. ECHO                            INSTALL C
  116. ECHO.
  117. ECHO.
  118. PAUSE
  119. CLS
  120. goto end
  121. @ REM ---Goof 2 - AMS already installed on target
  122. :goof2
  123. cls
  124. ECHO.
  125. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  126. ECHO.
  127. ECHO.
  128. ECHO.
  129. ECHO     Disk drive %1 was designated as the drive onto which AMS is to be
  130. ECHO  install however AMS is already installed on %1 drive.  Select another drive
  131. ECHO  or erase the AMS files on drive %1 and start the install program again.
  132. ECHO  as follows:
  133. ECHO.
  134. ECHO.
  135. ECHO.
  136. PAUSE
  137. CLS
  138. goto end
  139. @ REM ---Goof 3 - AMS installation diskette designated as the target
  140. :goof3
  141. CLS
  142. ECHO.
  143. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  144. ECHO.
  145. ECHO.
  146. ECHO.
  147. ECHO     Disk drive %1 was designated as the drive onto which AMS is to be
  148. ECHO  installed however this contains the INSTALLATION FILES.  Select another
  149. ECHO  drive other then drive %1 and start the installation program again.
  150. ECHO.
  151. ECHO     If AMS is being installed from files on a hard disk and the hard disk
  152. ECHO  is also the target the installation files may not be placed in the root
  153. ECHO  directory.  Instead create any directory other then \AMS, move the files
  154. ECHO  into that directory and start installation from that directory.
  155. ECHO.
  156. ECHO.
  157. PAUSE
  158. CLS
  159. goto end
  160. :end
  161. @echo on
  162.