Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>mediatype() - get disk media descriptor byte</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     mediatype() - get disk media descriptor byte
  Usage:    <integer> = mediatype(<drive>)
  Params:   string <drive> - drive letter to check, optional - If
            none, then the currently logged drive is used
  Returns:  integer equal to the disks media descriptor byte, or
            -1 if error

                 DESCRIPTOR BYTE DESCRIPTIONS:

                 Value     Meaning
                 255  -    dual sided, 8 sectors per track
                 254  -    single sided, 8 sectors per track
                 253  -    dual sided, 9 sectors per track
                 252  -    single sided, 9 sectors per track
                 249  -    dual sided, 15 sectors per track,
                           1.2 meg 5 1/4 or 720kb 3.5in
                 248  -    fixed disk
                 240  -    18 sectors per track 1.44 mb 3.5in
                 -1   -    error

 ---------------------------------- Example ---------------------------------

                 if mediatype("A:") = 249
                      ? "Disk in drive A: is dual sided, 1.2 megabytes"
                 endif

                 if mediatype("A:") = 254
                      ? "Disk in drive A: is single sided"
                 endif


See Also: isfloppy() isfixed() isdrive() isdisk()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson