home *** CD-ROM | disk | FTP | other *** search
/ Tactical Operations 2 / TACTICAL2.bin / COMMAND / CSINGLE / CCLAU203.ZIP / CCLAUNCH.BAT < prev    next >
Encoding:
DOS Batch File  |  1994-01-01  |  24.3 KB  |  835 lines

  1. @rem --------------------------------------------------------------------------
  2. @rem -    CCLAUNCH - COMMAND & CONQUER Launching-program by Jacob Pedersen    -
  3. @rem -                  Version : 2.03   -   Date : 17-03-96                  -
  4. @rem --------------------------------------------------------------------------
  5. @echo off
  6. if "%1" == "/?" goto help
  7. if "%1" == "?" goto help
  8. if "%1" == "/h" goto help
  9. if "%1" == "/H" goto help
  10. %cc_drive%:
  11. cclib.exe getlabel
  12. if %has_vpic% == no goto hasnot1
  13. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  14. del picdata
  15. :hasnot1
  16. cls
  17. if not %autostart% == cd goto dchkipx
  18. if %ipx% == 0 goto cdrom
  19. :dchkipx
  20. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  21. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  22. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  23. :clnstart
  24. if %autostart% == cd goto cdrom
  25. if %autostart% == hd goto hd
  26. if %ipx% == 1 goto hd
  27. echo.
  28. choice Which version would you like to run (C)D-ROM or (H)ARDDISK: /c:CH /n
  29. if errorlevel == 2 goto hd
  30. :cdrom
  31. cd %cdrom_path%
  32. if exist *.swp del *.swp
  33. if %autouse_gamedat% == none goto ask
  34. if %autouse_gamedat% == normal goto chifdat
  35. del game.dat
  36. xcopy %gamedat_dir%\game%autouse_gamedat%.dat game.dat > nul
  37. ren GDAT.? GDAT.%autouse_gamedat%
  38. goto vid11
  39. :ask
  40. if not exist %gamedat_dir%\game?.dat goto chifdat
  41. cclib.exe 1 5
  42. echo                                                              
  43. cclib.exe 1 5
  44. choice Do you wish to use another GAME.DAT? /c:NY /n
  45. if not errorlevel == 2 goto chifdat
  46. cd %gamedat_dir%
  47. cclib.exe 1 5
  48. echo                                                              
  49. echo.
  50. cclib.exe 1 5
  51. echo Select a DAT-file:  
  52. cclib.exe 1 7
  53. for %%f in (game?.dat) do cclib.exe writedd %%f
  54. cd %cdrom_path%
  55. :igen
  56. cclib.exe 20 5
  57. echo  
  58. cclib.exe 1 5
  59. choice Select a DAT-file: /c:1234567890 /n
  60. if errorlevel == 10 goto gda10
  61. if errorlevel == 9 goto gda9
  62. if errorlevel == 8 goto gda8
  63. if errorlevel == 7 goto gda7
  64. if errorlevel == 6 goto gda6
  65. if errorlevel == 5 goto gda5
  66. if errorlevel == 4 goto gda4
  67. if errorlevel == 3 goto gda3
  68. if errorlevel == 2 goto gda2
  69. if errorlevel == 1 goto gda1
  70. goto chifdat
  71. :gda1
  72. if not exist %gamedat_dir%\game1.dat goto igen
  73. if exist GDAT.1 goto vid11
  74. if exist %gamedat_dir%\game1.dat del game.dat
  75. if exist %gamedat_dir%\game1.dat xcopy %gamedat_dir%\game1.dat > nul
  76. ren game1.dat game.dat
  77. ren GDAT.? GDAT.1
  78. goto vid11
  79. :gda2
  80. if not exist %gamedat_dir%\game2.dat goto igen
  81. if exist GDAT.2 goto vid11
  82. if exist %gamedat_dir%\game2.dat del game.dat
  83. if exist %gamedat_dir%\game2.dat xcopy %gamedat_dir%\game2.dat > nul
  84. ren game2.dat game.dat
  85. ren GDAT.? GDAT.2
  86. goto vid11
  87. :gda3
  88. if not exist %gamedat_dir%\game3.dat goto igen
  89. if exist GDAT.3 goto vid11
  90. if exist %gamedat_dir%\game3.dat del game.dat
  91. if exist %gamedat_dir%\game3.dat xcopy %gamedat_dir%\game3.dat > nul
  92. ren game3.dat game.dat
  93. ren GDAT.? GDAT.3
  94. goto vid11
  95. :gda4
  96. if not exist %gamedat_dir%\game4.dat goto igen
  97. if exist GDAT.4 goto vid11
  98. if exist %gamedat_dir%\game4.dat del game.dat
  99. if exist %gamedat_dir%\game4.dat xcopy %gamedat_dir%\game4.dat > nul
  100. ren game4.dat game.dat
  101. ren GDAT.? GDAT.4
  102. goto vid11
  103. :gda5
  104. if not exist %gamedat_dir%\game5.dat goto igen
  105. if exist GDAT.5 goto vid11
  106. if exist %gamedat_dir%\game5.dat del game.dat
  107. if exist %gamedat_dir%\game5.dat xcopy %gamedat_dir%\game5.dat > nul
  108. ren game5.dat game.dat
  109. ren GDAT.? GDAT.5
  110. goto vid11
  111. :gda6
  112. if not exist %gamedat_dir%\game6.dat goto igen
  113. if exist GDAT.6 goto vid11
  114. if exist %gamedat_dir%\game6.dat del game.dat
  115. if exist %gamedat_dir%\game6.dat xcopy %gamedat_dir%\game6.dat > nul
  116. ren game6.dat game.dat
  117. ren GDAT.? GDAT.6
  118. goto vid11
  119. :gda7
  120. if not exist %gamedat_dir%\game7.dat goto igen
  121. if exist GDAT.7 goto vid11
  122. if exist %gamedat_dir%\game7.dat del game.dat
  123. if exist %gamedat_dir%\game7.dat xcopy %gamedat_dir%\game7.dat > nul
  124. ren game7.dat game.dat
  125. ren GDAT.? GDAT.7
  126. goto vid11
  127. :gda8
  128. if not exist %gamedat_dir%\game8.dat goto igen
  129. if exist GDAT.8 goto vid11
  130. if exist %gamedat_dir%\game8.dat del game.dat
  131. if exist %gamedat_dir%\game8.dat xcopy %gamedat_dir%\game8.dat > nul
  132. ren game8.dat game.dat
  133. ren GDAT.? GDAT.8
  134. goto vid11
  135. :gda9
  136. if not exist %gamedat_dir%\game9.dat goto igen
  137. if exist GDAT.9 goto vid11
  138. if exist %gamedat_dir%\game9.dat del game.dat
  139. if exist %gamedat_dir%\game9.dat xcopy %gamedat_dir%\game9.dat > nul
  140. ren game9.dat game.dat
  141. ren GDAT.? GDAT.9
  142. goto vid11
  143. :gda10
  144. if not exist %gamedat_dir%\game.dat goto gamedaterr
  145. if exist GDAT.0 goto vid11
  146. if exist %gamedat_dir%\game.dat del game.dat
  147. if exist %gamedat_dir%\game.dat xcopy %gamedat_dir%\game.dat > nul
  148. ren GDAT.? GDAT.0
  149. goto vid11
  150. :chifdat
  151. if not exist %gamedat_dir%\game.dat goto gamedaterr
  152. if exist GDAT.0 goto vid11
  153. ren GDAT.? GDAT.0
  154. del game.dat
  155. xcopy %gamedat_dir%\game.dat > nul
  156. goto vid11
  157. :vid11
  158.  
  159. if not %ipx% == 1 goto ova
  160. cclib.exe 1 5
  161. echo                                                                                
  162. cclib.exe 1 5
  163. choice Are you sure you want to run a CD-ROM network game  /c:NY
  164. if errorlevel == 2 goto ipx
  165. set ipx=0
  166. cclib.exe 1 5
  167. echo                                                              
  168. cclib.exe 1 4
  169. goto clnstart
  170. :ova
  171. cclib.exe 1 1
  172. echo                                                                                
  173. echo                                                                                
  174. echo                                                                                
  175. echo.
  176. echo                                                              
  177. cclib.exe 1 1
  178. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  179. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  180. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  181. echo.
  182.  
  183. if %seperate_savegames% == no goto startcc2
  184. if not exist savegame.* goto nowarn2
  185. echo Warning! One or more savegames exist. Continuing will delete these.
  186. echo.
  187. choice Do you wish to continue loading Command & Conquer (Y,N)? /c:YN /n
  188. if errorlevel == 2 goto abort
  189. del savegame.*
  190. if %has_vpic% == no goto hasnot62
  191. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  192. del picdata
  193. :hasnot62
  194. cls
  195. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  196. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  197. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  198. echo.
  199. :nowarn2
  200.   echo Please choose:
  201.   echo  - (N)OD,
  202. if %has_covert% == yes goto hascov2
  203.   echo  - (G)DI or
  204. choice  - (M)ulti-player: /c:NGM /n
  205. goto chk2
  206. :hascov2
  207.   echo  - (G)DI,
  208.   echo  - (M)ulti-player or
  209. choice  - (C)OVERT: /c:NGMC /n
  210. if errorlevel == 4 goto cdcov
  211. :chk2
  212. if errorlevel == 3 goto ccipx
  213. if errorlevel == 2 goto cdgdi
  214. xcopy %nod_path%\savegame.* > nul
  215. if not exist nod.sid ren ???.sid nod.sid
  216. goto startcc2
  217. :cdcov
  218. xcopy %cov_path%\savegame.* > nul
  219. if not exist cov.sid ren ???.sid cov.sid > nul
  220. goto startcc2
  221. :cdgdi
  222. xcopy %gdi_path%\savegame.* > nul
  223. if not exist gdi.sid ren ???.sid gdi.sid > nul
  224. goto startcc2
  225. :ccipx
  226. call ipx.bat /q
  227. goto ipx
  228.  
  229. :startcc2
  230. cclib.exe 1 1
  231. echo                                                                                
  232. echo                                                                                
  233. echo                                                                                
  234. echo.
  235. echo               
  236. echo          
  237. echo            
  238. echo                     
  239. echo               
  240. cclib.exe 1 1
  241. echo 
  242. c&c.exe %1 %2 %3 %4 %5
  243. mode co80
  244.  
  245. if %seperate_savegames% == no goto end3
  246. if exist gdi.sid goto gdi32
  247. if exist cov.sid goto cov32
  248. move savegame.* %nod_path%\ > nul
  249. goto end3
  250. :cov32
  251. move savegame.* %cov_path%\ > nul
  252. goto end3
  253. :gdi32
  254. move savegame.* %gdi_path%\ > nul
  255. goto end3
  256.  
  257. :ipx
  258. cclib.exe 1 1
  259. if %pick_coll% == yes goto dntera
  260. echo                                                                                
  261. echo                                                                                
  262. echo                                                                                
  263. echo.
  264. :dntera
  265. cclib.exe 1 5
  266. if not %autostart% == cd goto prinot
  267. echo                                                              
  268. :prinot
  269. if not %autostart% == cd echo              
  270. echo          
  271. echo            
  272. echo                     
  273. echo               
  274. if %pick_coll% == yes goto pickcoll
  275. if %def_coll% == 0 goto ovrpick2
  276. if %def_coll% == 1 goto coll1
  277. if %def_coll% == 2 goto coll2
  278. if %def_coll% == 3 goto coll3
  279. if %def_coll% == 4 goto coll4
  280. if %def_coll% == 5 goto coll5
  281. if %def_coll% == 6 goto coll6
  282. if %def_coll% == 7 goto coll7
  283. if %def_coll% == 8 goto coll8
  284. if %def_coll% == 9 goto coll9
  285. if %pick_coll% == no goto ovrpick2
  286. :pickcoll
  287. cclib.exe 1 5
  288. echo Pick a multiplayer-map collection:
  289. echo.
  290. cd %coll_path%
  291. for %%f in (sub?.des) do cclib.exe writesd %%f
  292. goto noflic
  293. :igenp
  294. cclib.exe 36 5
  295. echo  
  296. :noflic
  297. cclib.exe 1 5
  298. choice Pick a multiplayer-map collection: /c:1234567890 /n
  299. if errorlevel == 10 goto ovrpick
  300. if errorlevel == 9 goto coll9
  301. if errorlevel == 8 goto coll8
  302. if errorlevel == 7 goto coll7
  303. if errorlevel == 6 goto coll6
  304. if errorlevel == 5 goto coll5
  305. if errorlevel == 4 goto coll4
  306. if errorlevel == 3 goto coll3
  307. if errorlevel == 2 goto coll2
  308. if errorlevel == 1 goto coll1
  309. goto ovrpick2
  310. :coll1
  311. if not exist sub1.des goto igenp
  312. xcopy sub1\*.* %cdrom_path% > nul
  313. goto ovrpick
  314. :coll2
  315. if not exist sub2.des goto igenp
  316. xcopy sub2\*.* %cdrom_path% > nul
  317. goto ovrpick
  318. :coll3
  319. if not exist sub3.des goto igenp
  320. xcopy sub3\*.* %cdrom_path% > nul
  321. goto ovrpick
  322. :coll4
  323. if not exist sub4.des goto igenp
  324. xcopy sub4\*.* %cdrom_path% > nul
  325. goto ovrpick
  326. :coll5
  327. if not exist sub5.des goto igenp
  328. xcopy sub5\*.* %cdrom_path% > nul
  329. goto ovrpick
  330. :coll6
  331. if not exist sub6.des goto igenp
  332. xcopy sub6\*.* %cdrom_path% > nul
  333. goto ovrpick
  334. :coll7
  335. if not exist sub7.des goto igenp
  336. xcopy sub7\*.* %cdrom_path% > nul
  337. goto ovrpick
  338. :coll8
  339. if not exist sub8.des goto igenp
  340. xcopy sub8\*.* %cdrom_path% > nul
  341. goto ovrpick
  342. :coll9
  343. if not exist sub9.des goto igenp
  344. xcopy sub9\*.* %cdrom_path% > nul
  345. goto ovrpick
  346.  
  347. :ovrpick
  348. if %has_vpic% == no goto ovrpick2
  349. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  350. del picdata
  351.  
  352. :ovrpick2
  353. cd %cdrom_path%
  354. cclib.exe 1 1
  355. echo Starting CD-ROM version of COMMAND & CONQUER with network...
  356. if %quicklaunch% == off goto qloff1
  357. if not "%1" == "" echo Using socket :  %1
  358. if "%1" == "" echo Using socket :  %def_socket%
  359. echo 
  360. if not "%1" == "" c&c.exe -socket %1
  361. if "%1" == "" c&c.exe -socket %def_socket%
  362. goto ov10
  363. :qloff1
  364. if not "%1" == "" goto start1
  365. if not %def_parameters% == "" echo Using parameters :  %def_parameters%
  366. if not %def_parameters% == "" c&c.exe %def_parameters%
  367. if %default_parameters% == "" c&c.exe %1 %2 %3 %4 %5
  368. goto ov10
  369. :start1
  370. echo Using parameters :  %1 %2 %3 %4 %5
  371. echo 
  372. c&c.exe %1 %2 %3 %4 %5
  373. :ov10
  374. mode co80
  375. if %def_coll% == none goto dontrm
  376. if %pick_coll% == no goto dontrm
  377. del scm*.* > nul
  378. :dontrm
  379. goto end3
  380.  
  381. :hd
  382. cd %hdisk_path%
  383. if exist *.swp del *.swp
  384. if %autouse_gamedat% == none goto ask2
  385. if %autouse_gamedat% == normal goto chifdat2
  386. del game.dat
  387. xcopy %gamedat_dir%\game%autouse_gamedat%.dat game.dat > nul
  388. ren GDAT.? GDAT.%autouse_gamedat%
  389. goto vid2
  390. :ask2
  391. if not exist %gamedat_dir%\game?.dat goto chifdat2
  392. cclib.exe 1 5
  393. echo                                                              
  394. cclib.exe 1 5
  395. choice Do you wish to use another GAME.DAT? /c:NY /n
  396. if not errorlevel == 2 goto chifdat2
  397. cd %gamedat_dir%
  398. cclib.exe 1 5
  399. echo                                                              
  400. echo.
  401. cclib.exe 1 5
  402. echo Select a DAT-file:  
  403. cclib.exe 1 7
  404. for %%f in (game?.dat) do cclib.exe writedd %%f
  405. cd %hdisk_path%
  406. :igen2
  407. cclib.exe 20 5
  408. echo  
  409. cclib.exe 1 5
  410. choice Select a DAT-file: /c:1234567890 /n
  411. if errorlevel == 10 goto gd10
  412. if errorlevel == 9 goto gd9
  413. if errorlevel == 8 goto gd8
  414. if errorlevel == 7 goto gd7
  415. if errorlevel == 6 goto gd6
  416. if errorlevel == 5 goto gd5
  417. if errorlevel == 4 goto gd4
  418. if errorlevel == 3 goto gd3
  419. if errorlevel == 2 goto gd2
  420. if errorlevel == 1 goto gd1
  421. goto chifdat2
  422. :gd1
  423. if not exist %gamedat_dir%\game1.dat goto igen2
  424. if exist GDAT.1 goto vid22
  425. if exist %gamedat_dir%\game1.dat del game.dat
  426. if exist %gamedat_dir%\game1.dat xcopy %gamedat_dir%\game1.dat > nul
  427. ren game1.dat game.dat
  428. ren GDAT.? GDAT.1
  429. goto vid22
  430. :gd2
  431. if not exist %gamedat_dir%\game2.dat goto igen2
  432. if exist GDAT.2 goto vid22
  433. if exist %gamedat_dir%\game2.dat del game.dat
  434. if exist %gamedat_dir%\game2.dat xcopy %gamedat_dir%\game2.dat > nul
  435. ren game2.dat game.dat
  436. ren GDAT.? GDAT.2
  437. goto vid22
  438. :gd3
  439. if not exist %gamedat_dir%\game3.dat goto igen2
  440. if exist GDAT.3 goto vid22
  441. if exist %gamedat_dir%\game3.dat del game.dat
  442. if exist %gamedat_dir%\game3.dat xcopy %gamedat_dir%\game3.dat > nul
  443. ren game3.dat game.dat
  444. ren GDAT.? GDAT.3
  445. goto vid22
  446. :gd4
  447. if not exist %gamedat_dir%\game4.dat goto igen2
  448. if exist GDAT.4 goto vid22
  449. if exist %gamedat_dir%\game4.dat del game.dat
  450. if exist %gamedat_dir%\game4.dat xcopy %gamedat_dir%\game4.dat > nul
  451. ren game4.dat game.dat
  452. ren GDAT.? GDAT.4
  453. goto vid22
  454. :gd5
  455. if not exist %gamedat_dir%\game5.dat goto igen2
  456. if exist GDAT.5 goto vid22
  457. if exist %gamedat_dir%\game5.dat del game.dat
  458. if exist %gamedat_dir%\game5.dat xcopy %gamedat_dir%\game5.dat > nul
  459. ren game5.dat game.dat
  460. ren GDAT.? GDAT.5
  461. goto vid22
  462. :gd6
  463. if not exist %gamedat_dir%\game6.dat goto igen2
  464. if exist GDAT.6 goto vid22
  465. if exist %gamedat_dir%\game6.dat del game.dat
  466. if exist %gamedat_dir%\game6.dat xcopy %gamedat_dir%\game6.dat > nul
  467. ren game6.dat game.dat
  468. ren GDAT.? GDAT.6
  469. goto vid22
  470. :gd7
  471. if not exist %gamedat_dir%\game7.dat goto igen2
  472. if exist GDAT.7 goto vid22
  473. if exist %gamedat_dir%\game7.dat del game.dat
  474. if exist %gamedat_dir%\game7.dat xcopy %gamedat_dir%\game7.dat > nul
  475. ren game7.dat game.dat
  476. ren GDAT.? GDAT.7
  477. goto vid22
  478. :gd8
  479. if not exist %gamedat_dir%\game8.dat goto igen2
  480. if exist GDAT.8 goto vid22
  481. if exist %gamedat_dir%\game8.dat del game.dat
  482. if exist %gamedat_dir%\game8.dat xcopy %gamedat_dir%\game8.dat > nul
  483. ren game8.dat game.dat
  484. ren GDAT.? GDAT.8
  485. goto vid22
  486. :gd9
  487. if not exist %gamedat_dir%\game9.dat goto igen2
  488. if exist GDAT.9 goto vid22
  489. if exist %gamedat_dir%\game9.dat del game.dat
  490. if exist %gamedat_dir%\game9.dat xcopy %gamedat_dir%\game9.dat > nul
  491. ren game9.dat game.dat
  492. ren GDAT.? GDAT.9
  493. goto vid22
  494. :gd10
  495. if not exist %gamedat_dir%\game.dat goto gamedaterr
  496. if exist GDAT.0 goto vid22
  497. if exist %gamedat_dir%\game.dat del game.dat
  498. if exist %gamedat_dir%\game.dat xcopy %gamedat_dir%\game.dat > nul
  499. ren GDAT.? GDAT.0
  500. goto vid22
  501. :chifdat2
  502. if not exist %gamedat_dir%\game.dat goto gamedaterr
  503. if exist GDAT.0 goto vid2
  504. ren GDAT.? GDAT.0
  505. del game.dat
  506. xcopy %gamedat_dir%\game.dat > nul
  507. goto vid2
  508. :vid22
  509. if %has_vpic% == no goto hasnot0
  510. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  511. del picdata
  512. :hasnot0
  513. cclib.exe 1 1
  514. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  515. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  516. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  517. echo.
  518. echo.
  519. :vid2
  520. if exist %cdrom_path%\hallfame.dat goto dcopy3
  521. if exist hallfame.dat xcopy hallfame.dat %cdrom_path%\ > nul
  522. if exist hallfame.dat del hallfame.dat
  523. :dcopy3
  524. set no=yes
  525. if not %ipx% == 1 goto ova2
  526. cclib.exe 1 5
  527. echo                                                                                
  528. cclib.exe 1 5
  529. choice Are you sure you want to run a HARDDISK network game  /c:NY
  530. if errorlevel == 2 goto ipx2
  531. set no=no
  532. set ipx=0
  533. cclib.exe 1 5
  534. echo                                                              
  535. cclib.exe 1 4
  536. goto clnstart
  537. :ova2
  538. echo.
  539.   echo Please choose:
  540.   echo  - (N)OD,
  541. if %has_covert% == yes goto hascov
  542.   echo  - (G)DI or
  543. choice  - (M)ulti-player: /c:NGM /n
  544. goto chk
  545. :hascov
  546.   echo  - (G)DI,
  547.   echo  - (M)ulti-player or
  548. choice  - (C)OVERT: /c:NGMC /n
  549. if errorlevel == 4 goto cov
  550. :chk
  551. if errorlevel == 3 goto multihd
  552. if errorlevel == 2 goto gdi
  553. if exist nod.sid goto nod
  554. xcopy %nod_path%\%nod_general_mix% %cdrom_dir% > nul
  555. ren ???.sid nod.sid
  556. goto nod
  557. :cov
  558. if exist cov.sid goto nod
  559. xcopy %cov_path%\%cov_general_mix% %cdrom_dir% > nul
  560. ren ???.sid cov.sid
  561. goto nod
  562. :gdi
  563. if exist gdi.sid goto nod
  564. xcopy %gdi_path%\%gdi_general_mix% %cdrom_dir% > nul
  565. ren ???.sid gdi.sid
  566. :nod
  567. cclib.exe 1 1
  568. echo                                                                                
  569. echo                                                                                
  570. echo                                                                                
  571. if %autostart% == hd goto prinot2
  572. echo.
  573. echo                                                              
  574. :prinot2
  575. echo.
  576. echo               
  577. echo          
  578. echo            
  579. echo                     
  580. echo               
  581. cclib.exe 1 1
  582. goto start
  583.  
  584. :multihd
  585. call ipx.bat /q
  586.  
  587. :ipx2
  588. cclib.exe 1 1
  589. if %pick_coll% == yes goto dntera2
  590. echo                                                                                
  591. echo                                                                                
  592. echo                                                                                
  593. echo.
  594. :dntera2
  595. cclib.exe 1 5
  596. if %autostart% == hd goto prinot4
  597. echo                                                              
  598. echo.
  599. :prinot4
  600. if not %autostart% == hd echo              
  601. echo          
  602. echo            
  603. echo                     
  604. echo               
  605. if %pick_coll% == yes goto pickcol2
  606. if %def_coll% == 0 goto ovrpick4
  607. if %def_coll% == 1 goto coll21
  608. if %def_coll% == 2 goto coll22
  609. if %def_coll% == 3 goto coll23
  610. if %def_coll% == 4 goto coll24
  611. if %def_coll% == 5 goto coll25
  612. if %def_coll% == 6 goto coll26
  613. if %def_coll% == 7 goto coll27
  614. if %def_coll% == 8 goto coll28
  615. if %def_coll% == 9 goto coll29
  616. if %pick_coll% == no goto ovrpick4
  617. :pickcol2
  618. cclib.exe 1 5
  619. echo Pick a multiplayer-map collection:
  620. echo.
  621. cd %coll_path%
  622. for %%f in (sub?.des) do cclib.exe writesd %%f
  623. goto noflic2
  624. :igenp2
  625. cclib.exe 36 5
  626. echo  
  627. :noflic2
  628. cclib.exe 1 5
  629. choice Pick a multiplayer-map collection: /c:1234567890 /n
  630. if errorlevel == 10 goto ovrpick3
  631. if errorlevel == 9 goto coll29
  632. if errorlevel == 8 goto coll28
  633. if errorlevel == 7 goto coll27
  634. if errorlevel == 6 goto coll26
  635. if errorlevel == 5 goto coll25
  636. if errorlevel == 4 goto coll24
  637. if errorlevel == 3 goto coll23
  638. if errorlevel == 2 goto coll22
  639. if errorlevel == 1 goto coll21
  640. goto ovrpick4
  641. :coll21
  642. if not exist sub1.des goto igenp2
  643. xcopy sub1\*.* %hdisk_path% > nul
  644. goto ovrpick3
  645. :coll22
  646. if not exist sub2.des goto igenp2
  647. xcopy sub2\*.* %hdisk_path% > nul
  648. goto ovrpick3
  649. :coll23
  650. if not exist sub3.des goto igenp2
  651. xcopy sub3\*.* %hdisk_path% > nul
  652. goto ovrpick3
  653. :coll24
  654. if not exist sub4.des goto igenp2
  655. xcopy sub4\*.* %hdisk_path% > nul
  656. goto ovrpick3
  657. :coll25
  658. if not exist sub5.des goto igenp2
  659. xcopy sub5\*.* %hdisk_path% > nul
  660. goto ovrpick3
  661. :coll26
  662. if not exist sub6.des goto igenp2
  663. xcopy sub6\*.* %hdisk_path% > nul
  664. goto ovrpick3
  665. :coll27
  666. if not exist sub7.des goto igenp2
  667. xcopy sub7\*.* %hdisk_path% > nul
  668. goto ovrpick3
  669. :coll28
  670. if not exist sub8.des goto igenp2
  671. xcopy sub8\*.* %hdisk_path% > nul
  672. goto ovrpick3
  673. :coll29
  674. if not exist sub9.des goto igenp2
  675. xcopy sub9\*.* %hdisk_path% > nul
  676.  
  677. :ovrpick3
  678. if %has_vpic% == no goto ovrpick4
  679. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  680. del picdata
  681.  
  682. :ovrpick2
  683. cd %hdisk_path%
  684. cclib.exe 1 1
  685. echo Starting the HARDDISK version of COMMAND & CONQUER with network...
  686.  
  687. :start
  688. label NOD
  689. if %ipx% == 1 goto startipx
  690. if exist hallfame.dat del hallfame.dat > nul
  691. xcopy %cdrom_path%\hallfame.dat > nul
  692. :dcopy
  693. if exist savegame.* goto warning
  694. goto nowarn
  695. :warning
  696. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  697. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  698. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  699. echo.
  700. echo Warning! One or more savegames exist. Continuing will delete these.
  701. echo.
  702. choice Do you wish to continue loading Command & Conquer (Y,N)? /c:YN /n
  703. if errorlevel == 2 goto abort
  704. del savegame.*
  705. if %has_vpic% == no goto hasnot6
  706. call %vpic_path%\vpic %cdrom_path%\nod.gif /r
  707. del picdata
  708. :hasnot6
  709. cls
  710. :nowarn
  711. if exist gdi.sid goto gdi2
  712. if exist cov.sid goto cov2
  713. xcopy %nod_path%\savegame.* > nul
  714. goto startc&c
  715. :cov2
  716. xcopy %cov_path%\savegame.* > nul
  717. goto startc&c
  718. :gdi2
  719. label GDI
  720. xcopy %gdi_path%\savegame.* > nul
  721. goto startc&c
  722. :startipx
  723. if %quicklaunch% == off goto qloff3
  724. if not "%1" == "" echo Using socket :  %1
  725. if "%1" == "" echo Using socket :  %def_socket%
  726. echo 
  727. cd %hdisk_path%
  728. if not "%1" == "" c&c.exe -cd%cdrom_dir% -socket %1
  729. if "%1" == "" c&c.exe -cd%cdrom_dir% -socket %def_socket%
  730. goto ov12
  731. :qloff3
  732. if not "%1" == "" goto start2
  733. if not %def_parameters% == "" echo Using parameters :  %def_parameters%
  734. if not %def_parameters% == "" c&c.exe -cd%cdrom_dir% %def_parameters%
  735. if %def_parameters% == "" c&c.exe -cd%cdrom_dir% %1 %2 %3 %4 %5
  736. goto ov12
  737. :start2
  738. echo Using parameters :  %1 %2 %3 %4 %5
  739. echo 
  740. c&c.exe -cd%cdrom_dir% %1 %2 %3 %4 %5
  741. :ov12
  742. mode co80
  743. if %def_coll% == none goto dontrm2
  744. if %pick_coll% == no goto dontrm2
  745. del scm*.* > nul
  746. :dontrm2
  747. goto end3
  748. :startc&c
  749. echo 
  750. c&c.exe -cd%cdrom_dir% %1 %2 %3 %4 %5
  751. mode co80
  752. if %def_coll% == none goto dontrm2
  753. if %pick_coll% == no goto dontrm2
  754. del scm*.* > nul
  755. :dontrm2
  756. if %ipx% == 1 goto end3
  757. if not exist %cdrom_path%\hallfame.dat goto dcopy2
  758. if exist %cdrom_path%\hallfame.dat del %cdrom_path%\hallfame.dat
  759. if exist hallfame.dat xcopy hallfame.dat %cdrom_path%\ > nul
  760. if exist hallfame.dat del hallfame.dat
  761. :dcopy2
  762. if exist gdi.sid goto gdi3
  763. if exist cov.sid goto cov3
  764. move savegame.* %nod_path%\ > nul
  765. goto end3
  766. :cov3
  767. move savegame.* %cov_path%\ > nul
  768. goto end3
  769. :gdi3
  770. move savegame.* %gdi_path%\ > nul
  771. goto end3
  772. :gamedaterr
  773. mode co80
  774. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  775. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  776. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  777. echo.
  778. echo Command & Conquer cannot be run because of GAME.DAT not existing...
  779. echo.
  780. echo Make sure that the file GAME.DAT is located in your GAMEDAT_DIR!
  781. echo.
  782. goto end
  783. :abort
  784. mode co80
  785. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  786. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  787. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  788. echo.
  789. echo Command & Conquer was not run because of existing savegame(s)...
  790. echo.
  791. if %has_covert% == no  echo Move these to their rightful directories (NOD or GDI) and try again!
  792. if %has_covert% == yes echo Move these to their rightful directories (NOD, GDI or COVERT) and try again!
  793. echo.
  794. if exist gdi.sid echo Note: Last time you commanded the GDI!
  795. if exist nod.sid echo Note: Last time you commanded the Brotherhood of NOD!
  796. if exist cov.sid echo Note: Last time you played The Covert Operations!
  797. echo.
  798. echo.
  799. goto end
  800. :help
  801. mode co80
  802. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  803. echo  ≡                           C  C  L  A  U  N  C  H                           ≡
  804. echo  ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  805. echo.
  806. echo           CCLAUNCH - COMMAND & CONQUER LAUNCHINGPROGRAM Version 2.03
  807. echo.
  808. echo                      Copyright (c) 1996 By Jacob Pedersen
  809. echo.
  810. echo.
  811. echo Valid parameters when QUICK-LAUNCH is disabled:
  812. echo.
  813. echo -Destnet  = Specify Network Number of
  814. echo             destination system
  815. echo             (Syntax: DESTNETxx.xx.xx.xx)
  816. echo -Socket   = Network socket ID (0-16383)
  817. echo -Stealth  = Hide multiplayer names ("Boss mode")
  818. echo -Messages = Allow messages from outside this game.
  819. echo -O        = Enable compatability with version 1.07.
  820. echo.
  821. echo Valid parameters when QUICK-LAUNCH is enabled:
  822. echo.
  823. echo  Network socket ID (0-16383)            (f.i. "CC.BAT 714" for socket 714)
  824. echo.
  825. goto end
  826. :end3
  827. cd..
  828. echo 
  829. cls
  830. echo  CCLAUNCH - COMMAND & CONQUER Launchingprogram by Jacob Pedersen - Version 2.03 
  831. echo 
  832.  
  833. :end
  834. cclib.exe setlabel
  835.