Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>drivetype()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DRIVETYPE()

Syntax:     DRIVETYPE(<expC>)

Arguments:  <expC> denotes the drive (A,B,C,etc.) of which
            the type is to be established.

Returns:    A numeric value.
            The type of drive denoted by <expC>.

            Code        Definition
            ----        ----------
              0         Hard disk/RAM disk
              1         Floppy disk (change of disk cannot be established)
              2         Floppy disk (change of disk can be established)

Usage:      This function can be used to establish whether the drive is a
            floppy drive, hard disk or a RAM disk.  The function
            DISKTYPE() must also be used in order to distinguish
            between a hard disk and a RAM disk (see example).

Notes:      The function will automatically use the drive currently
            selected in the absence of the <expC>.  This function will only
            work on IBM ATs or compatibles.

Library:    CT1.LIB


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

Examples:   IF DRIVETYPE() = 0 .AND. DISKTYPE <> 248
               ? "Drive"+DISKNAME()+": is a RAM disk?"
            ENDIF



See Also: DISKNAME() DISKTYPE()

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