home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 14 / 14.iso / s / s019 / 10.ddi / MK360.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-10-01  |  8.2 KB  |  299 lines

  1. @echo off
  2. rem
  3. rem        Copyright (c) 1992 - Microsoft Corp.
  4. rem        All rights reserved.
  5. rem        Microsoft Confidential
  6. rem
  7. rem MK360 - makes 360K installation disks from the high-density
  8. rem        Workgroup Connection distribution disk
  9. rem
  10. rem usage: normally, just type MK360, which assumes
  11. rem source floppy is in A:, destination floppies will
  12. rem be put into A:, and that C:\WCDISKS is available for
  13. rem temporary storage.    If desired, you can specifiy the
  14. rem following parameters:
  15. rem
  16. rem MK360 source dest tempdrive tempdir
  17. rem
  18. rem where:
  19. rem
  20. rem    source is the source drive letter, e.g., A:
  21. rem    dest is the destination drive letter, e.g., A:
  22. rem    tempdrive is the drive that holds the temporary
  23. rem        copy of the files, e.g., C:
  24. rem    tempdir is the directory on tempdrive that holds
  25. rem        the temporary copy of the files, e.g., \WCDISKS
  26. rem
  27.  
  28. rem get all params
  29. set source=%1
  30. if not "%source%"=="" goto endsource
  31. set source=A:
  32. :endsource
  33.  
  34. set dest=%2
  35. if not "%dest%"=="" goto enddest
  36. set dest=A:
  37. :enddest
  38.  
  39. set tempdrive=%3
  40. if not "%tempdrive%"=="" goto endtdrive
  41. set tempdrive=C:
  42. :endtdrive
  43.  
  44. set tempdir=%4
  45. if not "%tempdir%"=="" goto endtdir
  46. set tempdir=\WCDISKS
  47. :endtdir
  48.  
  49. set temp=%tempdrive%%tempdir%
  50. :endtemp
  51.  
  52. rem if we're sitting in the temp area on hard disk, we're now
  53. rem in the 2nd phase of mk360.    Since we've
  54. rem already copied the files to the hard disk, we're
  55. rem now ready to skip
  56. rem ahead to copying from the hard disk to floppies
  57. if exist .\DISK1\setup.inf goto mkdisks
  58.  
  59. rem otherwise, we need to copy off the floppy onto the
  60. rem temp space on the hard disk
  61.  
  62. :start
  63.  
  64. echo This utility copies the contents of the Workgroup
  65. echo Connection disk onto four low-density disks. To use
  66. echo this utility, you must supply four low-density disks
  67. echo and label them as follows:
  68. echo.
  69. echo    Workgroup Connection Disk 1
  70. echo    Workgroup Connection Disk 2
  71. echo    Workgroup Connection Disk 3
  72. echo    Workgroup Connection Disk 4
  73. echo.
  74. echo Press CTRL+C to exit.
  75. pause
  76.  
  77. echo MK360 assumes that the source floppy is in A:, the destination
  78. echo floppies will be put into A:, and that C:\WCDISKS is available   
  79. echo for temporary storage.  If your configuration is different, you 
  80. echo can specify the correct configuration as follows:
  81. echo.
  82. echo    MK360 source dest tempdrive tempdir
  83. echo.
  84. echo where:
  85. echo.
  86. echo    source    = the location of your Workgroup Connection disk, such as A:
  87. echo    dest      = destination drive, such as A:
  88. echo    tempdrive = a drive where temporary storage can be used, such as C:
  89. echo    tempdir   = a directory on tempdrive where the temporary storage
  90. echo                will be, such as \WCDISKS
  91. echo.
  92. echo If you wish to enter parameters for MK360, press CTRL+C now to exit.
  93. echo Then start MK360 again with the proper parameters.
  94. pause
  95.  
  96.  
  97. echo Creating a temporary directory called WCDISKS, and copying
  98. echo files from your Workgroup Connection disk to that directory.
  99. echo.
  100.  
  101. md %temp%
  102. copy %source%\mk360.bat     %temp%
  103.  
  104. md %temp%\DISK1
  105. rem these 3 files are the 360K versions of the setup
  106. rem control programs.
  107. copy %source%\360.inf        %temp%\DISK1\setup.inf
  108. copy %source%\360netwo.in_  %temp%\DISK1\network.in_
  109. copy %source%\SYSTEM.IN_    %temp%\DISK1
  110. copy %source%\LM21DRV.UPD   %temp%\DISK1
  111. copy %source%\workgrp.SY_   %temp%\DISK1
  112. copy %source%\PROTMAN.DO_   %temp%\DISK1
  113. copy %source%\PROTMAN.EX_   %temp%\DISK1
  114. copy %source%\setup.exe     %temp%\DISK1
  115. copy %source%\CONNECT.TXT   %temp%\DISK1
  116. if errorlevel 1 goto error1
  117. md %temp%\DISK2
  118. copy %source%\ELNK.do_        %temp%\DISK2
  119. copy %source%\ELNKII.do_    %temp%\DISK2
  120. copy %source%\ELNKMC.do_    %temp%\DISK2
  121. copy %source%\ELNKPL.do_    %temp%\DISK2
  122. copy %source%\SMCMAC.do_    %temp%\DISK2
  123. copy %source%\NI6510.do_    %temp%\DISK2
  124. copy %source%\NE2000.do_    %temp%\DISK2
  125. copy %source%\NE1000.do_    %temp%\DISK2
  126. copy %source%\DEPCA.do_     %temp%\DISK2
  127. copy %source%\ELNK16.do_    %temp%\DISK2
  128. copy %source%\AM2100.do_    %temp%\DISK2
  129. copy %source%\EXP16.do_     %temp%\DISK2
  130. copy %source%\IBMTOK.do_    %temp%\DISK2
  131. copy %source%\TLNK.do_        %temp%\DISK2
  132. copy %source%\I82593.do_    %temp%\DISK2
  133. copy %source%\STRN.do_      %temp%\DISK2
  134. copy %source%\E20NDIS.do_   %temp%\DISK2
  135. copy %source%\E21NDIS.do_   %temp%\DISK2
  136. copy %source%\OLITOK.do_    %temp%\DISK2
  137. copy %source%\PRO4.do_      %temp%\DISK2
  138. copy %source%\NDIS39XR.do_  %temp%\DISK2
  139. copy %source%\PRORAPM.dw_   %temp%\DISK2
  140. copy %source%\SMC_ARC.do_   %temp%\DISK2
  141. copy %source%\ELNK3.do_     %temp%\DISK2
  142. if errorlevel 1 goto error1
  143. md %temp%\DISK3
  144. copy %source%\NET.MS_      %temp%\DISK3
  145. copy %source%\NETH.MS_      %temp%\DISK3
  146. copy %source%\NET.EX_      %temp%\DISK3
  147. if errorlevel 1 goto error1
  148. md %temp%\DISK4
  149. copy %source%\MICRO.EX_       %temp%\DISK4
  150. copy %source%\COUREXT.TPL     %temp%\DISK4
  151. copy %source%\COURIER.TPL     %temp%\DISK4
  152. copy %source%\COUR_ALI.TPL    %temp%\DISK4
  153. copy %source%\COUR_EX.TPL     %temp%\DISK4
  154. copy %source%\ENGMAI.GL_      %temp%\DISK4
  155. copy %source%\ENGMAI.HL_      %temp%\DISK4
  156. copy %source%\MAIL.EX_          %temp%\DISK4
  157. copy %source%\MAIL1.EX_       %temp%\DISK4
  158. if errorlevel 1 goto error1
  159.  
  160. rem now CD onto the hard disk and reexec the batch file from there
  161. %tempdrive%
  162. cd %temp%
  163. call %temp%\mk360 %source% %dest% %tempdrive% %tempdir% 
  164. cd ..
  165. %source%
  166.  
  167. echo Deleting the WCDISKS directory from your hard disk.
  168. echo.
  169.  
  170. del %temp%\DISK1\setup.inf
  171. del %temp%\DISK1\setup.exe     
  172. del %temp%\DISK1\CONNECT.TXT    
  173. del %temp%\DISK1\SYSTEM.IN_    
  174. del %temp%\DISK1\LM21DRV.UPD   
  175. del %temp%\DISK1\NETWORK.IN_   
  176. del %temp%\DISK1\workgrp.SY_   
  177. del %temp%\DISK1\PROTMAN.DO_   
  178. del %temp%\DISK1\PROTMAN.EX_   
  179. rd %temp%\DISK1
  180. del %temp%\DISK2\ELNK.do_
  181. del %temp%\DISK2\ELNKII.do_
  182. del %temp%\DISK2\ELNKMC.do_
  183. del %temp%\DISK2\ELNKPL.do_
  184. del %temp%\DISK2\SMCMAC.do_
  185. del %temp%\DISK2\NI6510.do_
  186. del %temp%\DISK2\NE2000.do_
  187. del %temp%\DISK2\NE1000.do_
  188. del %temp%\DISK2\DEPCA.do_
  189. del %temp%\DISK2\ELNK16.do_
  190. del %temp%\DISK2\AM2100.do_
  191. del %temp%\DISK2\EXP16.do_
  192. del %temp%\DISK2\IBMTOK.do_
  193. del %temp%\DISK2\TLNK.do_
  194. del %temp%\DISK2\I82593.do_
  195. del %temp%\DISK2\STRN.do_
  196. del %temp%\DISK2\E20NDIS.do_
  197. del %temp%\DISK2\E21NDIS.do_
  198. del %temp%\DISK2\OLITOK.do_
  199. del %temp%\DISK2\PRO4.do_
  200. del %temp%\DISK2\NDIS39XR.do_ 
  201. del %temp%\DISK2\PRORAPM.dw_  
  202. del %temp%\DISK2\SMC_ARC.do_ 
  203. del %temp%\DISK2\ELNK3.do_
  204. rd %temp%\DISK2
  205. del %temp%\DISK3\NET.MS_
  206. del %temp%\DISK3\NETH.MS_
  207. del %temp%\DISK3\NET.EX_
  208. rd %temp%\DISK3
  209. del %temp%\DISK4\MICRO.EX_
  210. del %temp%\DISK4\MAIL1.EX_
  211. del %temp%\DISK4\MAIL.EX_
  212. del %temp%\DISK4\COUREXT.TPL
  213. del %temp%\DISK4\COURIER.TPL
  214. del %temp%\DISK4\COUR_ALI.TPL
  215. del %temp%\DISK4\COUR_EX.TPL
  216. del %temp%\DISK4\ENGMAI.GL_
  217. del %temp%\DISK4\ENGMAI.HL_
  218. rd %temp%\DISK4
  219.  
  220. del %temp%\mk360.bat
  221. rd %temp%
  222.  
  223. echo Your low-density Workgroup Connection disks are
  224. echo complete.
  225. echo.
  226. echo To set up Workgroup Connection, insert Disk 1 into
  227. echo your floppy drive, and then type SETUP at the command prompt.
  228. echo.
  229.  
  230. goto end
  231.  
  232. :mkdisks
  233.  
  234. if not exist %temp%\mk360.bat goto start
  235.  
  236. echo Insert Disk 1 into drive %2, and then press ENTER.
  237. echo.
  238. pause
  239. echo Copying files to Disk 1
  240. echo.
  241.  
  242. copy %temp%\DISK1\*.*      %dest%
  243. if errorlevel 1 goto error2
  244.  
  245. echo Files copied to Disk 1
  246. echo.
  247. echo Insert Disk 2 into drive %2, and then press ENTER.
  248. echo.
  249. pause
  250. echo Copying files to Disk 2
  251. echo.
  252.  
  253. copy %temp%\DISK2\*.*     %dest%
  254. if errorlevel 1 goto error2
  255.  
  256. echo Files copied to Disk 2
  257. echo.
  258. echo Insert Disk 3 into drive %2, and then press ENTER.
  259. echo.
  260. pause
  261. echo Copying files to Disk 3
  262. echo.
  263.  
  264. copy %temp%\DISK3\*.*     %dest%
  265. if errorlevel 1 goto error2
  266.  
  267. echo Files copied to Disk 3
  268. echo.
  269. echo Insert Disk 4 into drive %2, and then press ENTER.
  270. echo.
  271. pause
  272.            
  273. copy %temp%\DISK4\*.*     %dest%
  274. if errorlevel 1 goto error2
  275.  
  276. echo Files copied to Disk 4
  277. echo.
  278. echo Insert the original Workgroup Connection disk into
  279. echo drive %1, and then press ENTER.
  280. echo.
  281. pause
  282. goto end
  283.  
  284. :error1
  285. echo.
  286. echo ERROR - There was an error during a copy to %temp%
  287. echo.
  288. goto end
  289.  
  290. :error2
  291. echo.
  292. echo ERROR - There was an error during a copy to %dest%
  293. echo.
  294. goto end
  295.  
  296. :end
  297. echo on
  298.      
  299.