home *** CD-ROM | disk | FTP | other *** search
/ PC Format 22 / Disk22.iso / PCF.BAT < prev    next >
DOS Batch File  |  1993-06-03  |  5KB  |  220 lines

  1. @echo off
  2. :start
  3. cls
  4. if %1!==! goto errmess
  5. if %2!==! goto errmess
  6. if "%1" =="a" goto testcd
  7. if "%1" =="A" goto testcd
  8. if "%1" =="b" goto testcd
  9. if "%1"=="B" goto testcd
  10.  
  11. goto errmess
  12.  
  13. :testcd
  14. if "%2" =="C" goto loader
  15. if "%2" =="c" goto loader
  16. if "%2"=="D" goto loader
  17. if "%2" =="d" goto loader
  18. if "%2"=="E" goto loader
  19. if "%2" =="e" goto loader
  20.  
  21. goto errmess
  22.  
  23. :loader
  24. mainmenu
  25. getkey prfmdvutx
  26.  
  27. if errorlevel 9 goto exit
  28. if errorlevel 8 goto turtle
  29. if errorlevel 7 goto utils1
  30. if errorlevel 6 goto vedit
  31. if errorlevel 5 goto fdesign
  32. if errorlevel 4 goto maze
  33. if errorlevel 3 goto fallout
  34. if errorlevel 2 goto roball
  35. if errorlevel 1 goto pddemo
  36.  
  37. :turtle
  38. cls
  39. echo Please wait while the PC FORMAT Coverdisk copies
  40. echo the relevant files to your "%2" drive.
  41. md %2:\pcf
  42. md %2:\pcf\povfiles
  43. copy %1:\turtle.zip %2:\pcf\povfiles
  44. copy %1:\pkunzip.exe %2:\pcf\povfiles
  45. %2:
  46. cd\pcf\povfiles
  47. pkunzip turtle.zip
  48. del turtle.zip
  49. del pkunzip.exe
  50. %1:
  51. echo.
  52. echo Please refer to the Coverdisk pages for information on how
  53. echo to run and use this Persistance of Vision file.
  54. pause
  55. goto loader
  56.  
  57. :utils1
  58. cls
  59. echo Please wait while the PC FORMAT Coverdisk copies
  60. echo the relevant files to your "%2" drive.
  61. md %2:\utils
  62. copy %1:\utils1.zip %2:\utils
  63. copy %1:\pkunzip.exe %2:\utils
  64. %2:
  65. cd\utils
  66. pkunzip utils1.zip
  67. del utils1.zip
  68. del pkunzip.exe
  69. %1:
  70. echo.
  71. echo Please refer to the Coverdisk pages for information on how
  72. echo to run and use these utilities.
  73. pause
  74. goto loader
  75.  
  76. :vedit
  77. cls
  78. echo Please wait while the PC FORMAT Coverdisk copies
  79. echo the relevant files to your "%2" drive.
  80. md %2:\pcf
  81. md %2:\pcf\vedit
  82. copy %1:\vedit.zip %2:\pcf\vedit
  83. copy %1:\pkunzip.exe %2:\pcf\vedit
  84. %2:
  85. cd\pcf\vedit
  86. pkunzip vedit.zip
  87. del vedit.zip
  88. del pkunzip.exe
  89. %1:
  90. echo.
  91. echo Please refer to the Coverdisk pages for information on how
  92. echo to use this great program.
  93. pause
  94. goto loader
  95.  
  96. :fdesign
  97. cls
  98. echo Please wait while the PC FORMAT Coverdisk copies
  99. echo the relevant files to your "%2" drive.
  100. md %2:\pcf
  101. md %2:\pcf\fdesign
  102. copy %1:\fdesign.zip %2:\pcf\fdesign
  103. copy %1:\pkunzip.exe %2:\pcf\fdesign
  104. %2:
  105. cd\pcf\fdesign
  106. pkunzip fdesign.zip
  107. del fdesign.zip
  108. del pkunzip.exe
  109. %1:
  110. echo.
  111. echo Please refer to the Coverdisk pages for information on how
  112. echo to run and use this superb fractal graphics program.
  113. pause
  114. goto loader
  115.  
  116. :maze
  117. cls
  118. echo Please wait while the PC FORMAT Coverdisk copies
  119. echo the relevant files to your "%2" drive.
  120. md %2:\pcf
  121. md %2:\pcf\maze
  122. copy %1:\maze.zip %2:\pcf\maze
  123. copy %1:\pkunzip.exe %2:\pcf\maze
  124. %2:
  125. cd\pcf\maze
  126. pkunzip maze.zip
  127. del maze.zip
  128. del pkunzip.exe
  129. %1:
  130. echo.
  131. echo Please refer to the Coverdisk pages for information on how
  132. echo to run and use this program.
  133. pause
  134. goto loader
  135.  
  136. :fallout
  137. cls
  138. echo Please wait while the PC FORMAT Coverdisk copies
  139. echo the relevant files to your "%2" drive.
  140. md %2:\games
  141. md %2:\games\fallout
  142. copy %1:\fallout.zip %2:\games\fallout
  143. copy %1:\pkunzip.exe %2:\games\fallout
  144. %2:
  145. cd\games\fallout
  146. pkunzip fallout.zip
  147. del fallout.zip
  148. del pkunzip.exe
  149. %1:
  150. echo.
  151. echo Please refer to the Coverdisk pages for information on how
  152. echo to play this great shareware game.
  153. pause
  154. goto loader
  155.  
  156. :roball
  157. cls
  158. echo Please wait while the PC FORMAT Coverdisk copies 
  159. echo the relevant files to your "%2" drive.
  160. md %2:\games
  161. md %2:\games\roball
  162. copy %1:\roball2.zip %2:\games\roball
  163. copy %1:\pkunzip.exe %2:\games\roball
  164. %2:
  165. cd\games\roball
  166. pkunzip roball2.zip
  167. del roball2.zip
  168. del pkunzip.exe
  169. %1:
  170. echo.
  171. echo Please refer to the PC FORMAT Coverdisk pages for information
  172. echo on how to play this fantastic shareware game.
  173. pause
  174. goto loader
  175.  
  176. :pddemo
  177. cls
  178. echo Please wait while the PC FORMAT Coverdisk copies
  179. echo the relevant files to your "%2" drive.
  180. md %2:\games
  181. md %2:\games\pddemo
  182. copy %1:\pddemo.zip %2:\games\pddemo
  183. copy %1:\pkunzip.exe %2:\games\pddemo
  184. %2:
  185. cd\games\pddemo
  186. pkunzip pddemo.zip
  187. del pddemo.zip
  188. del pkunzip.exe
  189. %1:
  190. echo.
  191. echo Please refer to the Coverdisk pages for information on
  192. echo how to play this great Pinball Dreams demo.
  193. pause
  194. goto loader
  195.  
  196. :errmess
  197. echo To start the PC FORMAT Coverdisk, please type the following:
  198. @echo.
  199. echo PCF X Y
  200. @echo. 
  201. echo where X is the letter of the floppy disk drive the Coverdisk is in
  202. echo and where Y is the letter of your hard disk where the files will be copied to.
  203. @echo.
  204. echo For example: PCF A C [Enter] if you are copying from
  205. echo the A drive to the C drive.
  206. echo For more information see page 7 of PC FORMAT.
  207. @echo.
  208. pause
  209. goto quit
  210.  
  211. :exit
  212. cls
  213. goodbye
  214. getkey x
  215. if errorlevel 1 goto quit
  216.  
  217. :quit
  218. cls
  219. echo on
  220.