DriveType( )

Microsoft Visual FoxPro Foxtools

DriveType( )

Returns the type of the specified drive. Also available as a native function in Visual FoxPro.

Syntax

DriveType(cDrive)

cDrive

The drive designator. The colon in drive names (for example, "C:") is optional.

Return Types

Numeric

Remarks

The following table explains the number DriveType( ) returns and the corresponding drive type description.

Number Drive type
0 No type
2 Floppy disk
3 Hard disk
4 Removable drive or network drive
5 CD-ROM
6 RAM disk(1)

(1) Because there are many different types of RAM disks, you might get inconsistent return results.