home *** CD-ROM | disk | FTP | other *** search
/ PC Format 21 / Disk21.iso / PCF.BAT < prev    next >
DOS Batch File  |  1993-04-26  |  3KB  |  137 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 uajrx
  26.  
  27. if errorlevel 5 goto exit
  28. if errorlevel 4 goto runes
  29. if errorlevel 3 goto robo
  30. if errorlevel 2 goto astro
  31. if errorlevel 1 goto utils
  32.  
  33. :runes
  34. cls
  35. echo Please wait while the PC FORMAT Coverdisk copies
  36. echo the relevant files to your "%2" drive.
  37. md %2:\pcf
  38. md %2:\pcf\runes
  39. copy %1:\runes.zip %2:\pcf\runes
  40. copy %1:\pkunzip.exe %2:\pcf\runes
  41. %2:
  42. cd\pcf\runes
  43. pkunzip runes.zip
  44. del runes.zip
  45. del pkunzip.exe
  46. %1:
  47. echo.
  48. echo Please refer to the Coverdisk pages for information on how
  49. echo to run and use this most excellent program.
  50. pause
  51. goto loader
  52.  
  53. :robo
  54. cls
  55. echo Please wait while the PC FORMAT Coverdisk copies
  56. echo the relevant files to your "%2" drive.
  57. md %2:\games
  58. md %2:\games\demo
  59. copy %1:\robo.zip %2:\games\demo
  60. copy %1:\pkunzip.exe %2:\games\demo
  61. %2:
  62. cd\games\demo
  63. pkunzip robo.zip
  64. del robo.zip
  65. del pkunzip.exe
  66. %1:
  67. echo.
  68. echo Please refer to the Coverdisk pages for information on how
  69. echo to run and use this most excellent playable demo.
  70. pause
  71. goto loader
  72.  
  73. :astro
  74. cls
  75. echo Please wait while the PC FORMAT Coverdisk copies
  76. echo the relevant files to your "%2" drive.
  77. md %2:\pcf
  78. md %2:\pcf\astro
  79. copy %1:\astro.zip %2:\pcf\astro
  80. copy %1:\pkunzip.exe %2:\pcf\astro
  81. %2:
  82. cd\pcf\astro
  83. pkunzip astro.zip
  84. del astro.zip
  85. del pkunzip.exe
  86. astro1
  87. astro2
  88. %1:
  89. echo.
  90. echo Please refer to the Coverdisk pages for information on how
  91. echo to use this most astrological program.
  92. pause
  93. goto loader
  94.  
  95. :utils
  96. cls
  97. echo Please wait while the PC FORMAT Coverdisk copies
  98. echo the relevant files to your "%2" drive.
  99. md %2:\utils
  100. copy %1:\utils.zip %2:\utils
  101. copy %1:\pkunzip.exe %2:\utils
  102. %2:
  103. cd\utils
  104. pkunzip utils.zip
  105. del utils.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 these most excellent DOS utilities.
  111. pause
  112. goto loader
  113.  
  114.  
  115. :errmess
  116. echo To start the PC FORMAT Coverdisk, please type the following:
  117. @echo.
  118. echo PCF X Y
  119. @echo. 
  120. echo X is the letter of the floppy disk drive the Coverdisk is in
  121. echo Y is the letter of your hard disk where the files will be copied to.
  122. @echo.
  123. echo For more information see page 7 of PC FORMAT.
  124. @echo.
  125. pause
  126. goto quit
  127.  
  128. :exit
  129. cls
  130. goodbye
  131. getkey x
  132. if errorlevel 1 goto quit
  133.  
  134. :quit
  135. cls
  136. echo on
  137.