home *** CD-ROM | disk | FTP | other *** search
/ PC Format 20 / Disk20-1.iso / PCF.BAT < prev    next >
DOS Batch File  |  1993-03-22  |  3KB  |  156 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 cghvxe
  26.  
  27. if errorlevel 6 goto egaroids
  28. if errorlevel 5 goto exit
  29. if errorlevel 4 goto vpic
  30. if errorlevel 3 goto hware
  31. if errorlevel 2 goto gifs
  32. if errorlevel 1 goto config
  33.  
  34. :vpic
  35. cls
  36. echo Please wait while the PC FORMAT Coverdisk copies
  37. echo the relevant files to your "%2" drive.
  38. md %2:\utils
  39. md %2:\utils\vpic
  40. copy %1:\vpict.zip %2:\utils\vpic
  41. copy %1:\pkunzip.exe %2:\utils\vpic
  42. %2:
  43. cd\utils\vpic
  44. pkunzip vpict.zip
  45. del vpict.zip
  46. del pkunzip.exe
  47. %1:
  48. echo.
  49. echo Please refer to the Coverdisk pages for information on how
  50. echo to run and use this most excellent utility.
  51. pause
  52. goto loader
  53.  
  54. :hware
  55. cls
  56. echo Please wait while the PC FORMAT Coverdisk copies
  57. echo the relevant files to your "%2" drive.
  58. md %2:\utils
  59. md %2:\utils\hware
  60. copy %1:\hware.zip %2:\utils\hware
  61. copy %1:\pkunzip.exe %2:\utils\hware
  62. %2:
  63. cd\utils\hware
  64. pkunzip hware.zip
  65. del hware.zip
  66. del pkunzip.exe
  67. %1:
  68. echo.
  69. echo Please refer to the Coverdisk pages for information on how
  70. echo to run and use this most excellent utility.
  71. pause
  72. goto loader
  73.  
  74. :gifs
  75. cls
  76. echo Please wait while the PC FORMAT Coverdisk copies
  77. echo the relevant files to your "%2" drive.
  78. md %2:\utils
  79. md %2:\utils\gifs
  80. copy %1:\gifs.zip %2:\utils\gifs
  81. copy %1:\pkunzip.exe %2:\utils\gifs
  82. %2:
  83. cd\utils\gifs
  84. pkunzip gifs.zip
  85. del gifs.zip
  86. del pkunzip.exe
  87. %1:
  88. echo.
  89. echo Please refer to the Coverdisk pages for information on how
  90. echo to use these GIFs.
  91. pause
  92. goto loader
  93.  
  94. :config
  95. cls
  96. echo Please wait while the PC FORMAT Coverdisk copies
  97. echo the relevant files to your "%2" drive.
  98. md %2:\utils
  99. md %2:\utils\config
  100. copy %1:\config.zip %2:\utils\config
  101. copy %1:\pkunzip.exe %2:\utils\config
  102. %2:
  103. cd\utils\config
  104. pkunzip config.zip
  105. del config.zip
  106. del pkunzip.exe
  107. %1:
  108. echo.
  109. echo Please refer to the Coverdisk pages for information on how
  110. echo to run and use this most excellent utility.
  111. pause
  112. goto loader
  113.  
  114. :egaroids
  115. cls
  116. echo Please wait while the PC FORMAT Coverdisk copies
  117. echo the relevant files to your "%2" drive.
  118. md %2:\games
  119. md %2:\games\egaroids
  120. copy %1:\egaroids.zip %2:\games\egaroids
  121. copy %1:\pkunzip.exe %2:\games\egaroids
  122. %2:
  123. cd\games\egaroids
  124. pkunzip egaroids.zip
  125. del egaroids.zip
  126. del pkunzip.exe
  127. %1:
  128. echo.
  129. echo Please refer to the Coverdisk pages for information on how
  130. echo to run and use this most excellent Asteroids clone.
  131. pause
  132. goto loader
  133.  
  134. :errmess
  135. echo To start the PC FORMAT Coverdisk, please type the following:
  136. @echo.
  137. echo PCF X Y
  138. @echo. 
  139. echo X is the letter of the floppy disk drive the Coverdisk is in
  140. echo Y is the letter of your hard disk where the files will be copied to.
  141. @echo.
  142. echo For more information see page 7 of PC FORMAT.
  143. @echo.
  144. pause
  145. goto quit
  146.  
  147. :exit
  148. cls
  149. goodbye
  150. getkey x
  151. if errorlevel 1 goto quit
  152.  
  153. :quit
  154. cls
  155. echo on
  156.