home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 253.img / DOS50HCT.ZIP / DOS50HCT.TD0 / DOSHCT / FMT_TEST.BAT < prev    next >
DOS Batch File  |  1991-01-01  |  2KB  |  88 lines

  1. @echo off
  2. goto parms
  3. :info
  4. echo DOS 5.0 Hardware Compatibility Test
  5. echo ===================================
  6. echo FMT_TEST test script
  7. echo -----------------------------------
  8. echo tests FORMAT using all disk sizes.
  9. :usage
  10. echo usage:  FMT_TEST [?] 5.25drive: 3.5drive:
  11. echo       /?           help information
  12. echo       5.25drive   drive for 5.25" disks  ('-' indicates not supported)
  13. echo       3.5drive    drive for 3.5" disks   ('-' indicates not supported)
  14. goto end
  15. :parms
  16. if "%1" == "/?" goto info
  17. if "%1" == "" goto usage
  18. if "%2" == "" goto usage
  19.  
  20.  
  21. if "%1" == "-" goto f720
  22. echo testing format with 160KB 5.25" floppy
  23. ync /c yn "is this disk type supported?"
  24. if errorlevel 1 goto f180
  25. @echo on
  26. format %1 /s /f:160
  27. @echo off
  28.  
  29. :f180
  30. echo testing format with 180KB 5.25" floppy
  31. ync /c yn "is this disk type supported?"
  32. if errorlevel 1 goto f320
  33. @echo on
  34. format %1 /s /f:180
  35. @echo off
  36.  
  37. :f320
  38. echo testing format with 320KB 5.25" floppy
  39. ync /c yn "is this disk type supported?"
  40. if errorlevel 1 goto f360
  41. @echo on
  42. format %1 /s /f:320
  43. @echo off
  44.  
  45. :f360
  46. echo testing format with 360KB 5.25" floppy
  47. ync /c yn "is this disk type supported?"
  48. if errorlevel 1 goto f1200
  49. @echo on
  50. format %1 /s /f:360
  51. @echo off
  52.  
  53. :f1200
  54. echo testing format with 1.2 MB 5.25" floppy
  55. ync /c yn "is this disk type supported?"
  56. if errorlevel 1 goto f720
  57. @echo on
  58. format %1 /s /f:1.2M
  59. @echo off
  60.  
  61. :f720
  62. if "%2" == "-" goto end
  63. echo testing format with 720KB 3.5" floppy
  64. ync /c yn "is this disk type supported?"
  65. if errorlevel 1 goto f1440
  66. @echo on
  67. format %2 /s /f:720
  68. @echo off
  69.  
  70. :f1440
  71. echo testing format with 1.44 MB 3.5" floppy
  72. ync /c yn "is this disk type supported?"
  73. if errorlevel 1 goto f2880
  74. @echo on
  75. format %2 /s /f:1.44M
  76. @echo off
  77.  
  78. :f2880
  79. echo testing form with 2.88 MB 3.5" floppy
  80. ync /c yn "is this disk type supported?"
  81. if errorlevel 1 goto end
  82. @echo on
  83. format %2 /s /f:2.88M
  84. @echo off
  85.  
  86. :end
  87. echo on
  88.