Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_diskstat() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_DISKSTAT()

 DESCRIPTION

 C_DISKSTAT() returns the current status of the specified floppy drive.

 SYNTAX

 C_DISKSTAT([drive])

 PARAMETERS

 drive (C/N) is the floppy disk drive to check the status.  The
 drive may be specified as a drive letter (A, B, etc.) or a drive
 number (A=1, B=2, etc.).  If the drive argument is not specified,
 the default of drive A will be used.  Note that if a non-removeable
 drive is specified, a value of 1 is returned.

 RETURNS

 C_DISKSTAT() returns the status of the specified floppy drive as a
 numeric.  The status codes are as follows:

 STATUS CODE    DESCRIPTION
 -----------    -----------
 0              Drive ready
 1              Illegal command (invalid drive or drive not removeable)
 2              Disk is write protected
 3              Sector not found (not formatted or non-DOS disk)
 4              DMA error
 5              CRC error
 6              Controller error
 7              Seek failure (probable non-DOS diskette)
 8              Timed-out (drive door open or no diskette)

 EXAMPLES

 if c_diskstat() = 2
   ? "Diskette is write protected"
 endif


See Also: C_ISDRIVE() C_DISKTYPE() C_ISFIXED() C_DRIVESTR()

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