home *** CD-ROM | disk | FTP | other *** search
/ PC Format 13 / Disk13-2.iso / PCF.BAT < prev    next >
DOS Batch File  |  1992-08-25  |  2KB  |  109 lines

  1. echo off
  2. cls
  3. echo If the the next screen show anything other than the PC FORMAT main menu
  4. echo please ensure that you insert a line in your CONFIG.SYS file reading
  5. echo DEVICE=C:\DOS\ANSI.SYS
  6. echo to insert this line, please refer to your DOS manual's section on EDLIN.
  7. pause
  8. :start
  9. type disk2.ans
  10. getkey 2dx
  11. if errorlevel 3 goto quit
  12. if errorlevel 2 goto dtp
  13. if errorlevel 1 goto dtp256
  14.  
  15. :dtp
  16. cls
  17. echo Creating directories
  18. md c:\pcf
  19. md c:\pcf\dtp
  20. echo directories created
  21. pause
  22. cls
  23. echo Copying archived file
  24. copy dtp----@.exe c:\pcf\dtp
  25. echo File copied to hard drive
  26. pause
  27. cls
  28.  
  29. type whatdrv.ans
  30. getkey ba
  31. if errorlevel 2 goto adtp
  32. if errorlevel 1 goto bdtp
  33. :adtp
  34.  
  35. echo Restoring archive file to normal size
  36. c:
  37. cd\pcf\dtp
  38. dtp----@
  39. del dtp----@.exe
  40. Echo Archive file now restored to normal size
  41. pause
  42. cls
  43. a:
  44. goto start
  45.  
  46. :bdtp
  47. echo Restoring archive file to normal size
  48. c:
  49. cd\pcf\dtp
  50. dtp----@
  51. del dtp----@.exe
  52. Echo Archive file now restored to normal size
  53. pause
  54. cls
  55. b:
  56. goto start
  57.  
  58. :dtp256
  59. cls
  60. echo Creating directories
  61. md c:\pcf
  62. md c:\pcf\dtp256
  63. echo directories created
  64. pause
  65. cls
  66. echo Copying archived file
  67. copy dtp256-@.exe c:\pcf\dtp256
  68. echo File copied to hard drive
  69. pause
  70. cls
  71.  
  72. type whatdrv.ans
  73. getkey ba
  74. if errorlevel 2 goto adtp256
  75. if errorlevel 1 goto bdtp256
  76.  
  77. :adtp256
  78. echo Restoring archive file to normal size
  79. c:
  80. cd\pcf\dtp256
  81. dtp256-@
  82. del dtp256-@.exe
  83. Echo Archive file now restored to normal size
  84. pause
  85. cls
  86. a:
  87. goto start
  88.  
  89. :bdtp256
  90. echo Restoring archive file to normal size
  91. c:
  92. cd\pcf\dtp256
  93. dtp256-@
  94. del dtp256-@.exe
  95. Echo Archive file now restored to normal size
  96. pause
  97. cls
  98. b:
  99. goto start
  100.  
  101. :quit
  102. type goodbye.ans
  103. getkey x
  104. if errorlevel 1 goto end
  105. :end
  106. cls
  107. echo on
  108.  
  109.