Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for flopdos.bat

(view source code of flopdos.bat as plain text)

  1. @ECHO OFF
  2. ECHO o 70 10> Flop.dbg
  3. ECHO i 71>>   Flop.dbg
  4. ECHO q>>      Flop.dbg
  5. DEBUG < Flop.dbg | FIND /V " " | DATE | FIND "):" > Temp.bat
  6. ECHO SET FDDCfg=%%4>Enter.bat
  7. CALL Temp.bat
  8. FOR %%A IN (Temp.bat Enter.bat Flop.dbg) DO DEL %%A
  9. IF "%FDDCfg%"=="00" ECHO Floppy Drive 0: None
  10. IF "%FDDCfg%"=="00" ECHO Floppy Drive 1: None
  11. IF "%FDDCfg%"=="01" ECHO Floppy Drive 0: None
  12. IF "%FDDCfg%"=="01" ECHO Floppy Drive 1: 360K
  13. IF "%FDDCfg%"=="02" ECHO Floppy Drive 0: None
  14. IF "%FDDCfg%"=="02" ECHO Floppy Drive 1: 1.2M
  15. IF "%FDDCfg%"=="03" ECHO Floppy Drive 0: None
  16. IF "%FDDCfg%"=="03" ECHO Floppy Drive 1: 720K
  17. IF "%FDDCfg%"=="04" ECHO Floppy Drive 0: None
  18. IF "%FDDCfg%"=="04" ECHO Floppy Drive 1: 1.44M
  19. IF "%FDDCfg%"=="10" ECHO Floppy Drive 0: 360K
  20. IF "%FDDCfg%"=="10" ECHO Floppy Drive 1: None
  21. IF "%FDDCfg%"=="11" ECHO Floppy Drive 0: 360K
  22. IF "%FDDCfg%"=="11" ECHO Floppy Drive 1: 360K
  23. IF "%FDDCfg%"=="12" ECHO Floppy Drive 0: 360K
  24. IF "%FDDCfg%"=="12" ECHO Floppy Drive 1: 1.2M
  25. IF "%FDDCfg%"=="13" ECHO Floppy Drive 0: 360K
  26. IF "%FDDCfg%"=="13" ECHO Floppy Drive 1: 720K
  27. IF "%FDDCfg%"=="14" ECHO Floppy Drive 0: 360K
  28. IF "%FDDCfg%"=="14" ECHO Floppy Drive 1: 1.44M
  29. IF "%FDDCfg%"=="20" ECHO Floppy Drive 0: 1.2M
  30. IF "%FDDCfg%"=="20" ECHO Floppy Drive 1: None
  31. IF "%FDDCfg%"=="21" ECHO Floppy Drive 0: 1.2M
  32. IF "%FDDCfg%"=="21" ECHO Floppy Drive 1: 360K
  33. IF "%FDDCfg%"=="22" ECHO Floppy Drive 0: 1.2M
  34. IF "%FDDCfg%"=="22" ECHO Floppy Drive 1: 1.2M
  35. IF "%FDDCfg%"=="23" ECHO Floppy Drive 0: 1.2M
  36. IF "%FDDCfg%"=="23" ECHO Floppy Drive 1: 720K
  37. IF "%FDDCfg%"=="24" ECHO Floppy Drive 0: 1.2M
  38. IF "%FDDCfg%"=="24" ECHO Floppy Drive 1: 1.44M
  39. IF "%FDDCfg%"=="30" ECHO Floppy Drive 0: 720K
  40. IF "%FDDCfg%"=="30" ECHO Floppy Drive 1: None
  41. IF "%FDDCfg%"=="31" ECHO Floppy Drive 0: 720K
  42. IF "%FDDCfg%"=="31" ECHO Floppy Drive 1: 360K
  43. IF "%FDDCfg%"=="32" ECHO Floppy Drive 0: 720K
  44. IF "%FDDCfg%"=="32" ECHO Floppy Drive 1: 1.2M
  45. IF "%FDDCfg%"=="33" ECHO Floppy Drive 0: 720K
  46. IF "%FDDCfg%"=="33" ECHO Floppy Drive 1: 720K
  47. IF "%FDDCfg%"=="34" ECHO Floppy Drive 0: 720K
  48. IF "%FDDCfg%"=="34" ECHO Floppy Drive 1: 1.44M
  49. IF "%FDDCfg%"=="40" ECHO Floppy Drive 0: 1.44M
  50. IF "%FDDCfg%"=="40" ECHO Floppy Drive 1: None
  51. IF "%FDDCfg%"=="41" ECHO Floppy Drive 0: 1.44M
  52. IF "%FDDCfg%"=="41" ECHO Floppy Drive 1: 360K
  53. IF "%FDDCfg%"=="42" ECHO Floppy Drive 0: 1.44M
  54. IF "%FDDCfg%"=="42" ECHO Floppy Drive 1: 1.2M
  55. IF "%FDDCfg%"=="43" ECHO Floppy Drive 0: 1.44M
  56. IF "%FDDCfg%"=="43" ECHO Floppy Drive 1: 720K
  57. IF "%FDDCfg%"=="44" ECHO Floppy Drive 0: 1.44M
  58. IF "%FDDCfg%"=="44" ECHO Floppy Drive 1: 1.44M
  59. GOTO End
  60.  
  61. :Syntax
  62. ECHO.
  63. ECHO FlopDOS.bat,  Version 1.00 for MS-DOS
  64. ECHO Display the floppy drives configuration for the local computer
  65. ECHO.
  66. ECHO Usage:  FLOPDOS.BAT
  67. ECHO.
  68. ECHO This batch file uses DEBUG to read the floppy disk configuration from the CMOS.
  69. ECHO More information can be found in PLASMA Online's CMOS Register Reference:
  70. ECHO http://www.plasma-online.de/textual/download/misc/cmos_registers.html
  71. ECHO and in The Starman's DEBUG Tutorial:
  72. ECHO http://mirror.href.com/thestarman/asm/debug/debug2.htm
  73. ECHO.
  74. ECHO Written by Rob van der Woude
  75. ECHO http://www.robvanderwoude.com
  76.  
  77. :End
  78.  

page last uploaded: 2017-04-06, 13:33