home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / d72pnw.exe / CREATE.BAT < prev    next >
DOS Batch File  |  1995-10-31  |  14KB  |  501 lines

  1. @echo off
  2. IF "%1" == "/?" GOTO HELP
  3. IF "%1" == "HELP" GOTO HELP
  4. IF "%1" == "Help" GOTO HELP
  5. IF "%1" == "help" GOTO HELP
  6. IF "%1" == "skip" goto next1
  7. IF "%1" == "SKIP" goto next1
  8. IF "%1" == "Skip" goto next1
  9. IF "%1" == "DELETE" GOTO DEL
  10. IF "%1" == "Delete" GOTO DEL
  11. IF "%1" == "delete" GOTO DEL
  12. goto next2
  13. :next1
  14. IF "%2" == "" GOTO help
  15. goto makepnw
  16. :next2
  17. IF "%2" == "" GOTO help
  18. cls
  19. echo      ***********************************************************************
  20. echo.
  21. echo                      Copyright (c)  Novell Inc. 1995
  22. echo.
  23. echo      This routine is provided by Novell to create a Personal NetWare
  24. echo      installation disk set from the Novell DOS 7 installation disk set.
  25. echo.
  26. echo      REQUIREMENTS: The Novell DOS 7 3.5" diskette set (6 disks)
  27. echo                    Three (3) blank, formatted 3.5" 1.44 MB diskettes
  28. echo                Or, Three (3) blank, formatted 5.25" 1.2 MB diskettes
  29. echo.
  30. echo      Label the three (3) disks: "Disk 1 of 3", "Disk 2 of 3", "Disk 3 of 3".
  31. echo.
  32. echo      This routine will first create 3 temporary directories: DISK1, DISK2,
  33. echo      and DISK3 on the current drive.  There MUST be 4 MB of free disk space.
  34. echo      Necessary files will be copied off of the six (6) Novell DOS 7 
  35. echo      diskettes to the temporary directories.  The routine will copy
  36. echo      the contents of the three temporary directories to three (3) floppy
  37. echo      disks.  The routine will then remove the temporary directories.
  38. echo.
  39. echo      Press "ctrl" "C" and answer "Y" at any time to terminate this routine.
  40. echo      ***********************************************************************
  41. echo.
  42. pause
  43. echo      Three temporary disk image directories will now be created.
  44. @echo on
  45. md disk1
  46. md disk2
  47. md disk3
  48. @echo off
  49. echo.
  50. echo       The files included in the download will now be copied to
  51. echo       their appropriate locations.
  52. echo.
  53. pause
  54. rem ***** Download Files *****
  55. IF EXIST SETUP.INI GOTO CONT0
  56. ECHO.
  57. ECHO ERROR!  Unable to find the download files.  Be sure all files that were
  58. echo         included in the download file are in the current directory.
  59. goto end
  60. :CONT0
  61. copy setup.in* disk1
  62. copy install.ex* disk1
  63. copy winstall.hl* disk1
  64. copy wsetup.bm* disk1
  65. copy novell.bm* disk1
  66. copy novlogo1.bm* disk1
  67. copy dosinst.ov* disk1
  68. copy setup.hl* disk1
  69. copy colors.in* disk1
  70. copy readpnw.tx* disk3\readme.txt
  71. rem  ***** ND7 Disk 1 *****
  72. :disk1
  73. echo.
  74. echo                *************************************************
  75. echo.
  76. echo                Insert the Novell DOS 7 disk "1 of 6" in drive %1
  77. echo.
  78. pause
  79. IF EXIST %1\HRMIB.INI GOTO CONT1
  80. ECHO ERROR!  Unable to find necessary files on the disk in drive %1
  81. goto disk1
  82. :CONT1
  83. copy %1\hrmib.in* disk1
  84. copy %1\dblbuf.sy* disk2
  85. copy %1\pnunpack.ex* disk3
  86. rem ********* ND7 Disk 2 *****
  87. :disk2
  88. echo.
  89. echo                *************************************************
  90. echo.
  91. echo                Insert the Novell DOS 7 disk "2 of 6" in drive %1
  92. echo.
  93. pause
  94. IF EXIST %1\nwcache.exe GOTO CONT2
  95. ECHO ERROR!  Unable to find necessary files on the disk in drive %1
  96. goto disk2
  97. :cont2
  98. copy %1\nwcache.ex* disk3
  99. copy %1\nwcache.ov* disk3
  100. copy %1\netwars.ex* disk3
  101. rem ********* ND7 Disk 3 *****
  102. :disk3
  103. echo.
  104. echo                *************************************************
  105. echo.
  106. echo                Insert the Novell DOS 7 disk "3 of 6" in drive %1
  107. echo.
  108. pause
  109. IF EXIST %1\vipx.38_ GOTO CONT3
  110. ECHO ERROR!  Unable to find necessary files on the disk in drive %1
  111. goto disk3
  112. :cont3
  113. copy %1\vipx.38* disk2
  114. copy %1\serno.ex* disk3
  115. rem ********* ND7 Disk 4 *****
  116. :disk4
  117. echo.
  118. echo                *************************************************
  119. echo.
  120. echo                Insert the Novell DOS 7 disk "4 of 6" in drive %1
  121. echo.
  122. pause
  123. IF EXIST %1\auto.vl_ GOTO CONT4
  124. ECHO ERROR!  Unable to find necessary files on the disk in drive %1
  125. goto disk4
  126. :cont4
  127. copy %1\auto.vl* disk1
  128. copy %1\bind.vl* disk1
  129. copy %1\conn.vl* disk1
  130. copy %1\fio.vl* disk1
  131. copy %1\general.vl* disk1
  132. copy %1\ipxncp.vl* disk1
  133. copy %1\nds.vl* disk1
  134. copy %1\netx.vl* disk1
  135. copy %1\nmr.vl* disk1
  136. copy %1\nwp.vl* disk1
  137. copy %1\pnw.vl* disk1
  138. copy %1\print.vl* disk1
  139. copy %1\redir.vl* disk1
  140. copy %1\rsa.vl* disk1
  141. copy %1\security.vl* disk1
  142. copy %1\vlm.ex* disk3
  143. copy %1\dosrqstr.ms* disk1
  144. copy %1\nmr.ms* disk1
  145. copy %1\netc.ms* disk1
  146. copy %1\netu.ov* disk1
  147. copy %1\net.ex* disk2
  148. copy %1\neta.hl* disk2
  149. copy %1\netu.hl* disk2
  150. copy %1\netw.ex* disk2
  151. copy %1\ipxodi.co* disk2
  152. copy %1\lsl.co* disk2
  153. copy %1\netbios.ex* disk2
  154. copy %1\odinsup.co* disk2
  155. copy %1\ipxodi.ms* disk2
  156. copy %1\tran.vl* disk2
  157. copy %1\uni_1252.pa* disk3
  158. copy %1\uni_437.pa* disk3
  159. copy %1\uni_col.pa* disk3
  160. copy %1\uni_mon.pa* disk3
  161. copy %1\workgrp disk3
  162. copy %1\handle disk3
  163. copy %1\nlmigrat.ms* disk3
  164. rem ********* ND7 Disk 5 *****
  165. :disk5
  166. echo.
  167. echo                *************************************************
  168. echo.
  169. echo                Insert the Novell DOS 7 disk "5 of 6" in drive %1
  170. echo.
  171. pause
  172. IF EXIST %1\nwcalls.dl__ GOTO CONT5
  173. ECHO ERROR!  Unable to find necessary files on the disk in drive %1
  174. goto disk5
  175. :cont5
  176. copy %1\nwcalls.dl* disk3
  177. copy %1\nwlocale.dl* disk3
  178. copy %1\neta.ov* disk2
  179. copy %1\netu2.ov* disk2
  180. copy %1\netwpnw.dl* disk2
  181. copy %1\netwhelp.hl* disk2
  182. copy %1\nwgdi.dl* disk2
  183. copy %1\nwnet.dl* disk2
  184. copy %1\nwpsrv.dl* disk2
  185. copy %1\taskid.co* disk2
  186. copy %1\tbmi2.co* disk2
  187. copy %1\taskid.ms* disk2
  188. copy %1\tbmi2.ms* disk2
  189. copy %1\netware.dr* disk2
  190. copy %1\nwpopup.ex* disk2
  191. copy %1\nwrcon.pi* disk3
  192. copy %1\vnetware.38* disk2
  193. copy %1\netware.hl* disk2
  194. copy %1\ibm_run.ov* disk2
  195. copy %1\pnwdiag.da* disk2
  196. copy %1\pnwdiag.ex* disk3
  197. copy %1\pnwdiagw.dl* disk3
  198. copy %1\pnwdiags.he* disk3
  199. copy %1\pnwdiags.ms* disk3
  200. copy %1\textutil.ms* disk2
  201. copy %1\nlmigrat.ex* disk3
  202. copy %1\hostmib.mi* disk3
  203. copy %1\hrmib.ex* disk3
  204. copy %1\version.ex* disk3
  205. copy %1\mib2if.vl* disk3
  206. copy %1\mib2prot.vl* disk3
  207. copy %1\pnwmib.vl* disk3
  208. copy %1\pnwtrap.vl* disk3
  209. copy %1\stpipx.co* disk3
  210. copy %1\stpudp.co* disk3
  211. copy %1\wsasn1.vl* disk3
  212. copy %1\wsreg.vl* disk3
  213. copy %1\wssnmp.vl* disk3
  214. copy %1\wstrap.vl* disk3
  215. copy %1\pnw.mi* disk3
  216. copy %1\pnwtrap.mi* disk3
  217. copy %1\mib2if.ms* disk3
  218. copy %1\mib2prot.ms* disk3
  219. copy %1\pnwmib.ms* disk3
  220. copy %1\pnwtrap.ms* disk3
  221. copy %1\stpipx.ms* disk3
  222. copy %1\stpudp.ms* disk3
  223. copy %1\wsasn1.ms* disk3
  224. copy %1\wsreg.ms* disk3
  225. copy %1\wssnmp.ms* disk3
  226. copy %1\wstrap.ms* disk3
  227. copy %1\nwipxspx.dl* disk3
  228. copy %1\pnw.dl* disk3
  229. copy %1\resource disk3
  230. copy %1\security disk3
  231. copy %1\server disk3
  232. copy %1\user disk3
  233. copy %1\server.ms* disk3
  234. copy %1\ins.oe* disk3
  235. rem ********* ND7 Disk 6 *****
  236. :disk6
  237. echo.
  238. echo                *************************************************
  239. echo.
  240. echo                Insert the Novell DOS 7 disk "6 of 6" in drive %1
  241. echo.
  242. pause
  243. IF EXIST %1\drivers.dos GOTO CONT6
  244. ECHO ERROR!  Unable to find necessary files on the disk is drive %1
  245. goto disk6
  246. :cont6
  247. copy %1\drivers.do* disk1
  248. copy %1\null.co* disk1
  249. copy %1\null.in* disk1
  250. copy %1\ne1000.co* disk1
  251. copy %1\ne1000.in* disk1
  252. copy %1\ne1500t.co* disk1
  253. copy %1\ne1500t.in* disk1
  254. copy %1\ne2.co* disk1
  255. copy %1\ne2.in* disk1
  256. copy %1\ne2000.co* disk1
  257. copy %1\ne2000.in* disk1
  258. copy %1\ne2100.co* disk1
  259. copy %1\ne2100.in* disk1
  260. copy %1\ne2_32.co* disk1
  261. copy %1\ne2_32.in* disk1
  262. copy %1\ne3200.co* disk1
  263. copy %1\ne3200.in* disk1
  264. copy %1\ntr2000.co* disk1
  265. copy %1\ntr2000.in* disk1
  266. copy %1\3c5x9.co* disk1
  267. copy %1\3c5x9.in* disk1
  268. copy %1\3c503.co* disk1
  269. copy %1\3c503.in* disk1
  270. copy %1\3c523.co* disk1
  271. copy %1\3c523.in* disk1
  272. copy %1\ceodi.co* disk1
  273. copy %1\ceodi.in* disk1
  274. copy %1\e20odi.co* disk1
  275. copy %1\e20odi.in* disk1
  276. copy %1\e21odi.co* disk1
  277. copy %1\e21odi.in* disk1
  278. copy %1\e2hodi.co* disk1
  279. copy %1\e2hodi.in* disk1
  280. copy %1\e30odi.co* disk1
  281. copy %1\e30odi.in* disk1
  282. copy %1\e31odi.co* disk1
  283. copy %1\e31odi.in* disk1
  284. copy %1\es3210.co* disk1
  285. copy %1\es3210.in* disk1
  286. copy %1\exp16odi.co* disk1
  287. copy %1\exp16odi.in* disk1
  288. copy %1\hpisaodi.co* disk1
  289. copy %1\hpisaodi.in* disk1
  290. copy %1\hpmcaodi.co* disk1
  291. copy %1\hpmcaodi.in* disk1
  292. copy %1\ibmfddio.co* disk1
  293. copy %1\ibmfddi.bi* disk1
  294. copy %1\ibmfddio.in* disk1
  295. copy %1\ibmodish.co* disk1
  296. copy %1\ibmodish.in* disk1
  297. copy %1\intel593.co* disk1
  298. copy %1\intel593.in* disk1
  299. copy %1\ncrwl05.co* disk1
  300. copy %1\ncrwl05.in* disk1
  301. copy %1\ni5210.co* disk1
  302. copy %1\ni5210.in* disk1
  303. copy %1\ni6510.co* disk1
  304. copy %1\ni6510.in* disk1
  305. copy %1\ni9210.co* disk1
  306. copy %1\ni9210.in* disk1
  307. copy %1\smc8000.co* disk1
  308. copy %1\smc8000.in* disk1
  309. copy %1\smc8100.co* disk1
  310. copy %1\smc8100.in* disk1
  311. copy %1\t20odi.co* disk1
  312. copy %1\t20odi.in* disk1
  313. copy %1\tccarc.co* disk1
  314. copy %1\tccarc.in* disk1
  315. copy %1\tce16atw.co* disk1
  316. copy %1\tce16atw.in* disk1
  317. copy %1\tce32mcw.co* disk1
  318. copy %1\tce32mcw.in* disk1
  319. copy %1\tctoksh.co* disk1
  320. copy %1\tctoksh.in* disk1
  321. copy %1\token.co* disk1
  322. copy %1\token.in* disk1
  323. copy %1\pcmdm.co* disk1
  324. copy %1\pcmdm.in* disk1
  325. copy %1\pcn2l.co* disk1
  326. copy %1\pcn2l.in* disk1
  327. copy %1\pe2odi.co* disk1
  328. copy %1\pe2odi.in* disk1
  329. copy %1\madgeodi.co* disk1
  330. copy %1\mdgdos02.bi* disk1
  331. copy %1\madgeodi.in* disk1
  332. copy %1\osh391r.co* disk3
  333. copy %1\osh391r.in* disk3
  334. copy %1\trxnet.co* disk3
  335. copy %1\trxnet.in* disk3
  336. copy %1\pnwdiag.hl* disk3
  337. copy %1\textutil.id* disk2
  338. copy %1\dpms.ex* disk3
  339. copy %1\dosgen.ex* disk2
  340. copy %1\rplfix.co* disk2
  341. copy %1\pnwdiags.ex* disk3
  342. copy %1\ether.rp* disk3
  343. copy %1\nearserv.ex* disk3
  344. copy %1\pcn2l.rp* disk3
  345. copy %1\rboot.rp* disk3
  346. copy %1\rpl.co* disk3
  347. copy %1\rplodi.co* disk3
  348. copy %1\token.rp* disk3
  349. copy %1\server.ex* disk3
  350. rem ********* BREAK POINT *****
  351. :makepnw
  352. :dest1
  353. echo.
  354. echo           *********************************************************
  355. echo.
  356. echo           Ready to copy the Personal NetWare files to the three (3)
  357. echo           blank, formatted, high density diskettes in drive %2
  358. echo.
  359. echo           Insert the new Personal NetWare disk 1 of 3 in drive %2
  360. echo.
  361. echo           *********************************************************
  362. echo.
  363. pause
  364. if exist %2\*.* goto fail1
  365. copy disk1\*.* %2
  366. goto cont7
  367. :fail1
  368. echo.
  369. echo ERROR!  The disk in drive %2 is not blank.  Either insert a blank disk
  370. echo         or end this process by pressing "ctrl" "C" and answer "Y".
  371. goto dest1
  372. :cont7
  373. :dest2
  374. echo.
  375. echo           *******************************************************
  376. echo.
  377. echo           Insert the new Personal NetWare disk 2 of 3 in drive %2
  378. echo.
  379. echo           *******************************************************
  380. echo.
  381. pause
  382. if exist %2\*.* goto fail2
  383. copy disk2\*.* %2
  384. goto cont8
  385. :fail2
  386. echo.
  387. echo ERROR!  The disk in drive %2 is not blank.  Either insert a blank disk
  388. echo         or end this process by pressing "ctrl" "C" and answer "Y".
  389. goto dest2
  390. :cont8
  391. :dest3
  392. echo.
  393. echo           *******************************************************
  394. echo.
  395. echo           Insert the new Personal NetWare disk 3 of 3 in drive %2
  396. echo.
  397. echo           *******************************************************
  398. echo.
  399. pause
  400. if exist %2\*.* goto fail3
  401. copy disk3\*.* %2
  402. goto cont9
  403. :fail3
  404. echo.
  405. echo ERROR!  The disk in drive %2 is not blank.  Either insert a blank disk
  406. echo         or end this process by pressing "ctrl" "C" and answer "Y".
  407. goto dest3
  408. :cont9
  409. :DEL
  410. echo.
  411. echo      ***************************************************************
  412. echo.
  413. Echo      The three temporary disk image directories and download files
  414. echo      will now be removed.  Press "ctrl" "C" and answer "Y" to keep
  415. echo      the image directories and files, otherwise,
  416. echo.
  417. Pause
  418. Echo      Searching for removal utility
  419. echo.
  420. If exist c:\nwdos\xdel.exe goto xdel
  421. If exist c:\dos\deltree.exe goto deltree
  422. If exist c:\windows\deltree.exe goto deltree
  423. If exist c:\windows\command\deltree.exe goto deltree
  424. echo.
  425. Echo      Unable to find a removal utility.  The temporary directories will 
  426. echo      be removed with basic DOS commands.  DOS will prompt "are you sure?"
  427. echo      regarding DEL *.*, answer Y to this prompt.
  428. Echo.
  429. @echo on
  430. cd disk1
  431. del *.*
  432. Cd..
  433. Rd disk1
  434. cd disk2
  435. del *.*
  436. Cd..
  437. Rd disk2
  438. cd disk3
  439. del *.*
  440. Cd..
  441. Rd disk3
  442. @echo off
  443. goto delfiles
  444. :xdel
  445. echo      XDEL removal utility found
  446. echo      Removing temporary directories & download files
  447. c:\nwdos\xdel disk1 /srdn
  448. c:\nwdos\xdel disk2 /srdn
  449. c:\nwdos\xdel disk3 /srdn
  450. goto delfiles
  451. :deltree
  452. echo      DELTREE removal utility found
  453. echo      Removing temporary directories & download files
  454. c:\dos\deltree /y disk1
  455. c:\dos\deltree /y disk2
  456. c:\dos\deltree /y disk3
  457. goto delfiles
  458. :delfiles
  459. del setup.in*
  460. del install.ex*
  461. del winstall.hl*
  462. del wsetup.bm*
  463. del novell.bm*
  464. del novlogo1.bm*
  465. del dosinst.ov*
  466. del setup.hl*
  467. del colors.in*
  468. del readpnw.tx*
  469. del readme.txt
  470. goto end
  471. :HELP
  472. echo   *************************************************************************
  473. echo.
  474. echo   A Source and Destination drive letter MUST be entered.
  475. echo.
  476. echo   USAGE:  CREATE (source): (destination): 
  477. echo.
  478. echo   If the Novell DOS 7 disks will be read in the A: drive AND the new
  479. echo   Personal NetWare disk set will be created in the A: drive, enter:
  480. echo.
  481. echo        CREATE A: A:
  482. echo.
  483. Echo   If the Novell DOS 7 disks will be read in the A: drive and the new
  484. echo   Personal NetWare disk set will be created on the B: drive, enter:
  485. echo.
  486. Echo        CREATE A: B:
  487. echo.
  488. echo   'SKIP' can be used to "skip" the copying of files off of the Novell DOS
  489. echo   7 disks (assuming the files have already been read off of the disks)
  490. echo   and jump to creating the new Personal NetWare disk set, enter:
  491. echo.
  492. echo        CREATE SKIP (destination):
  493. echo.
  494. echo   *************************************************************************
  495. goto done
  496. :END
  497. echo End Of Routine
  498. echo.
  499. echo A "Batch File Missing" error may appear.  This is not a problem.
  500. del create.bat
  501. :done