home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l210 / 1.ddi / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1988-06-21  |  5.3 KB  |  182 lines

  1. echo off
  2. if "%1" == "" goto parerror
  3. if "%2" == "" goto parerror
  4. if "%2" == "b:" goto mkflpy
  5. if "%2" == "B:" goto mkflpy
  6. if "%4" == "" goto chkdisk1
  7. goto parerror
  8. :mkflpy
  9. if "%3" == "y" goto mkflpyy
  10. if "%3" == "Y" goto mkflpyy
  11. if "%3" == "n" goto mkflpyn
  12. if "%3" == "N" goto mkflpyn
  13. goto parerror
  14. :mkflpyy
  15. installf a: b: y
  16. :mkflpyn
  17. installf a: b: n
  18. :chkdisk1
  19. if exist %1EXAMPLES.ARC goto mkhdisk
  20. echo Please insert the Turbo Prolog disk labelled INSTALLATION/README
  21. echo in drive %1
  22. pause
  23. gotochkdisk1
  24. :mkhdisk
  25. echo Making directories...
  26. md %2
  27. md %2\ANSWERS
  28. md %2\BGI
  29. md %2\EXAMPLES
  30. md %2\PIE
  31. md %2\PROGRAMS
  32. md %2\REFEXAMP
  33. copy %1\INSTALLH.BAT %2
  34. copy %1\UNPACK.COM %2
  35. cd %2
  36. INSTALLH %1 %2 CHAIN
  37. :parerror
  38. cls
  39. echo            Turbo Prolog version 2.0 Installation Utility.
  40. echo 
  41. echo 
  42. echo 
  43. echo 
  44. echo 
  45. echo 
  46. echo            BEFORE YOU INSTALL PLEASE READ THE README!!!
  47. echo 
  48. echo 
  49. echo 
  50. echo 
  51. echo 
  52. echo 
  53. echo 
  54. echo 
  55. echo 
  56. echo 
  57. echo 
  58. echo Press Ctrl-Break to end or
  59. pause
  60. cls
  61. echo            Turbo Prolog version 2.0 Installation Utility.
  62. echo 
  63. echo 
  64. echo 
  65. echo 
  66. echo 
  67. echo 
  68. echo            CAUTION -- HARD DISK USERS installation must be
  69. echo                       initiated from the hard disk DRIVE
  70. echo 
  71. echo 
  72. echo 
  73. echo 
  74. echo 
  75. echo 
  76. echo 
  77. echo 
  78. echo 
  79. pause
  80. cls
  81. echo            Turbo Prolog version 2.0 Installation Utility
  82. echo 
  83. echo 
  84. echo 
  85. echo                             hard disk
  86. echo                             ---------
  87. echo 
  88. echo      To install Turbo Prolog, enter the following command at the DOS
  89. echo prompt (if your floppy is not in drive A, just substitute your drive
  90. echo wherever you see A:).  Make sure that the hard disk is the DEFAULT
  91. echo DRIVE.  You CANNOT install Turbo Prolog 2.0 if the default
  92. echo drive is A: or B:!
  93. echo 
  94. echo At the DOS prompt for your HARD DISK enter:
  95. echo 
  96. echo      A:INSTALL A: C:\PROLOG
  97. echo 
  98. echo 
  99. echo 
  100. echo 
  101. echo 
  102. echo 
  103. pause
  104. cls
  105. echo                         floppy disk users
  106. echo                         -----------------
  107. echo 
  108. echo 
  109. echo If you're using a two-floppy drive system, you have a choice of copying
  110. echo the reference examples (REFEXAMP.ARC) or not.  If you DO wish to copy
  111. echo them, use this command:
  112. echo 
  113. echo      INSTALL A: B: y
  114. echo 
  115. echo If you DO NOT wish to copy them, then use the following command:
  116. echo 
  117. echo      INSTALL A: B: n
  118. echo 
  119. echo 
  120. echo 
  121. echo 
  122. echo 
  123. echo 
  124. pause
  125. cls
  126. echo                   hard disk and floppy disk users
  127. echo                   -------------------------------
  128. echo 
  129. echo 
  130. echo      The first install parameter (A:) specifies the floppy disk drive
  131. echo that contains your master disk.  The second parameter (C:\PROLOG or
  132. echo B:) specifies the full path name of the drive (and subdirectory if
  133. echo you're a hard disk user) where you want to install Turbo Prolog (unless
  134. echo it conflicts with another directory, we suggest you use \PROLOG).  You
  135. echo should NOT add a trailing "\" to these parameters.
  136. echo 
  137. echo      For two floppy drive users, the third argument (y, or n) specifies
  138. echo whether you want the reference examples to be copied to your disks.
  139. echo The installation program will create the following directories on your
  140. echo hard disk (assuming you are installing in the \PROLOG directory):
  141. echo 
  142. echo   C:\PROLOG            Main Turbo Prolog directory, compiler, utilities
  143. echo   C:\PROLOG\ANSWERS    Answers to exercises in the tutorial
  144. echo   C:\PROLOG\BGI        Borland Graphics Interface programs and utilities
  145. echo   C:\PROLOG\EXAMPLES   Example programs from the Prolog tutorial
  146. echo   C:\PROLOG\PIE        Prolog Inference Engine
  147. echo   C:\PROLOG\PROGRAMS   Various demonstration programs
  148. echo   C:\PROLOG\REFEXAMP   Examples of predicate usage from reference guide
  149. echo  
  150. pause 
  151. cls 
  152. echo      For two-floppy drive users, the installation program will create 
  153. echo the same directories only on different disks. (Except the BGI and 
  154. echo PROGRAMS directories;  the files in these directories are simply 
  155. echo placed in the root directory of the disk they are on). 
  156. echo  
  157. echo      After creating these directories, the program will copy your
  158. echo files from your master disks onto your hard disk (or your floppy disks).
  159. echo because Turbo Prolog comes on more than one disk, during this process 
  160. echo you will be instructed to change disks before continuing.  Just follow 
  161. echo the directions and you will be on your way.  If you have any problems 
  162. echo just check the README file.  It explains in detail, how to use the 
  163. echo install programs and exactly what they do. 
  164. echo  
  165. pause 
  166. cls 
  167. echo      Once again, the following command will install Turbo Prolog 2.0 
  168. echo on your hard disk (make sure your hard disk is the DEFAULT DRIVE!!). 
  169. echo  
  170. echo     A:INSTALL A: C:\PROLOG 
  171. echo  
  172. echo And this next command will install Turbo Prolog on your floppy disks: 
  173. echo  
  174. echo     INSTALL A: B: y   (if you want to copy the reference examples)
  175. echo  
  176. echo     INSTALL A: B: n   (if you don't want the reference examples) 
  177. echo  
  178. echo Where A: designates the floppy drive with your master diskette and 
  179. echo C:\PROLOG or B: is the fill path name of the destination drive and  
  180. echo subdirectory.
  181. :quit
  182.