home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / NUT2-2.ZIP / INSTALL.BAT next >
Encoding:
DOS Batch File  |  1990-10-29  |  8.8 KB  |  156 lines

  1. @echo off
  2. cls
  3. if %1@==@ goto WrongParam
  4. if %1==c: goto WrongParam
  5. if %1==C: goto WrongParam
  6. if %1==d: goto WrongParam
  7. if %1==D: goto WrongParam
  8. if %1==e: goto WrongParam
  9. if %1==E: goto WrongParam
  10. if %1==f: goto WrongParam
  11. if %1==F: goto WrongParam
  12. if %1==g: goto WrongParam
  13. if %1==G: goto WrongParam
  14. if %1==h: goto WrongParam
  15. if %1==H: goto WrongParam
  16.  
  17. if %2@==@ goto WrongParam
  18. if %2==a: goto WrongParam
  19. if %2==A: goto WrongParam
  20. if %2==b: goto WrongParam
  21. if %2==B: goto WrongParam
  22.  
  23. if %1==a goto WrongParam
  24. if %1==b goto WrongParam
  25. if %1==A goto WrongParam
  26. if %1==B goto WrongParam
  27.  
  28. if %1==%2 goto WrongParam
  29. echo Testing for target drive %2
  30. type nul > %2drive.$$$
  31. %2
  32. if not exist drive.$$$ goto startagain
  33. del drive.$$$
  34. cls
  35. echo  ╔═══════════════  Published by IRIS Software Products tm ═══════════════════╗
  36. echo  ║                                                                           ║
  37. echo  ║   ▀▀▀     ▀▀▀              ▀▀▀              ▀▀▀                 ▀▀▀ ▀▀▀   ║
  38. echo  ║   ▀▀▀▀    ▀▀▀              ▀▀▀              ▀▀▀                 ▀▀▀ ▀▀▀   ║
  39. echo  ║   ▀▀▀▀▀   ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀  ▀▀▀ ▀▀▀   ║
  40. echo  ║   ▀▀▀▀▀▀  ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀ ▀▀▀   ║
  41. echo  ║   ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀   ▀▀▀    ▀▀▀    ▀▀▀       ▀▀▀   ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀ ▀▀▀   ║
  42. echo  ║   ▀▀▀  ▀▀▀▀▀▀ ▀▀▀   ▀▀▀    ▀▀▀     ▀▀▀▀▀▀▀  ▀▀▀   ▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀ ▀▀▀   ║
  43. echo  ║   ▀▀▀   ▀▀▀▀▀ ▀▀▀   ▀▀▀    ▀▀▀          ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀       ▀▀▀ ▀▀▀   ║
  44. echo  ║   ▀▀▀    ▀▀▀▀ ▀▀▀▀▀▀▀▀▀    ▀▀▀    ▀▀▀▀▀▀▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀ ▀▀▀   ║
  45. echo  ║   ▀▀▀     ▀▀▀  ▀▀▀▀▀▀▀     ▀▀▀     ▀▀▀▀▀▀▀  ▀▀▀   ▀▀▀  ▀▀▀▀▀▀▀  ▀▀▀ ▀▀▀   ║
  46. echo  ║                                                                           ║
  47. echo  ║          ▀▀▀▀▀▀▀▀▀   ▀▀▀                           ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀        ║
  48. echo  ║          ▀▀▀    ▀▀▀  ▀▀▀                               ▀▀▀ ▀▀▀            ║
  49. echo  ║          ▀▀▀     ▀▀▀ ▀▀▀ ▀▀▀   ▀▀▀  ▀▀▀▀▀▀▀            ▀▀▀ ▀▀▀            ║
  50. echo  ║          ▀▀▀     ▀▀▀ ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀▀▀▀▀▀▀           ▀▀▀ ▀▀▀            ║
  51. echo  ║          ▀▀▀    ▀▀▀  ▀▀▀ ▀▀▀   ▀▀▀ ▀▀▀                 ▀▀▀ ▀▀▀            ║
  52. echo  ║          ▀▀▀▀▀▀▀▀▀   ▀▀▀ ▀▀▀   ▀▀▀  ▀▀▀▀▀▀▀            ▀▀▀ ▀▀▀            ║
  53. echo  ║          ▀▀▀         ▀▀▀ ▀▀▀   ▀▀▀       ▀▀▀           ▀▀▀ ▀▀▀            ║
  54. echo  ║          ▀▀▀         ▀▀▀ ▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀           ▀▀▀ ▀▀▀            ║
  55. echo  ║          ▀▀▀         ▀▀▀  ▀▀▀▀▀▀▀   ▀▀▀▀▀▀▀        ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀        ║
  56. echo  ╚═══════════════════════════════════════════════════════════════════════════╝
  57. echo To begin installation procedure
  58. pause
  59. cls
  60. echo  ╔════════════════════════════════════════════════════════════════════════════╗
  61. echo  ║          This installation procedure will create a directory called        ║
  62. echo  ║      NUTPLUS on your hard disk drive and copy the system files for         ║
  63. echo  ║      Nutshell Plus II, the Tour, and the Nutshell Plus file Utilities.     ║
  64. echo  ║                                                                            ║
  65. echo  ║          You may interrupt this procedure at any time by typing a          ║
  66. echo  ║      "Ctrl-C".  If a nutplus subdirectory already exists on the            ║
  67. echo  ║      hard drive partition which you have designated and you already        ║
  68. echo  ║      have Nutshell Plus system files there they will be overwritten.       ║
  69. echo  ║      If you wish to make backup copies of those system files, you may      ║
  70. echo  ║      interrupt this procedure now.  This procedure will not overwrite      ║
  71. echo  ║      any existing ".db" files, but keeping backup copies of all            ║
  72. echo  ║      database files is highly recommended.                                 ║
  73. echo  ║                                                                            ║
  74. echo  ║          When Nutshell Plus II has been installed on your hard drive you   ║
  75. echo  ║      may wish to make a backup copy of your Nutshell Plus II system disks  ║
  76. echo  ║      using the DOS diskcopy command. Before beginning the diskcopy we      ║
  77. echo  ║      suggest that you place a write protect tab over the notch on your     ║
  78. echo  ║      system disks. Consult your operating system manual for more           ║
  79. echo  ║      information about the diskcopy procedure.                             ║
  80. echo  ╚════════════════════════════════════════════════════════════════════════════╝
  81. echo To terminate this installation procedure now type "Ctrl-C", otherwise
  82. pause
  83. cls
  84. echo Making Nutplus Directory
  85. md %2\nutplus
  86. echo If directory already existed ignore message above
  87. cd %2\nutplus
  88. echo Copying...
  89. if exist nutplus.hlp del nutplus.hlp
  90. copy/b %1\*.* %2\nutplus
  91. if not exist nututils.exe goto copyerror
  92. if exist nutplus.hlp goto continue
  93. :COPYERROR
  94. echo ╔══════════════════════════════════════════════════════════╗
  95. echo ║ Sorry, a problem occurred while copying the files!       ║
  96. echo ║         Please check both drive selections and try again.║
  97. echo ╚══════════════════════════════════════════════════════════╝
  98. pause
  99. goto wrongparam
  100. :STARTAGAIN
  101. del %2drive.$$$
  102. cls
  103. echo ╔════════════════════════════════════════════════════════════════════════════╗
  104. echo ║                                                                            ║
  105. echo ║                                                                            ║
  106. echo ║                                                                            ║
  107. echo ║                                                                            ║
  108. echo ║                                                                            ║
  109. echo ║                                                                            ║
  110. echo ║                                                                            ║
  111. echo ║                                                                            ║
  112. echo ║                                                                            ║
  113. echo ║                                                                            ║
  114. echo ║     Sorry, the TARGET DRIVE which you have selected cannot be found !      ║
  115. echo ║                    Please select another and try again.                    ║
  116. echo ║                                                                            ║
  117. echo ║                                                                            ║
  118. echo ║                                                                            ║
  119. echo ║                                                                            ║
  120. echo ║                                                                            ║
  121. echo ║                                                                            ║
  122. echo ║                                                                            ║
  123. echo ║                                                                            ║
  124. echo ╚════════════════════════════════════════════════════════════════════════════╝
  125. pause
  126. :WRONGPARAM
  127. cls
  128. echo You have entered: %0 %1 %2 ──┘
  129. echo ╔════════════════════════════════════════════════════════════════════════════╗
  130. echo ║  To run this installation procedure, log onto the floppy drive and type:   ║
  131. echo ║                                                                            ║
  132. echo ║                INSTALL source_drive target_drive──┘                       ║
  133. echo ║                                                                            ║
  134. echo ║   For example, if your floppy drive is A and you wish to install           ║
  135. echo ║   Nutshell Plus II on the C partition of your hard disk drive, then you    ║
  136. echo ║   may either log onto your floppy drive by entering "A:" at the next       ║
  137. echo ║   command line then enter the following command:                           ║
  138. echo ║                                                                            ║
  139. echo ║                         INSTALL A: C:──┘                                  ║
  140. echo ║                                                                            ║
  141. echo ║   Or, simply type at the C Prompt:                                         ║
  142. echo ║                                                                            ║
  143. echo ║                         A:INSTALL A: C:──┘                                ║
  144. echo ║                                                                            ║
  145. echo ║   Hint:  This installation will allow you to install from either floppy    ║
  146. echo ║          drive A or B, and to any Partition on your hard disk drive from   ║
  147. echo ║          C: ... H:.                                                        ║
  148. echo ║                                                                            ║
  149. echo ╚════════════════════════════════════════════════════════════════════════════╝
  150. pause
  151. cls
  152. goto end
  153. :CONTINUE
  154. instalx %1 %2
  155. :END
  156.