Click or drag to resize

DriveType Function

X#
-- todo --
Returns the type of the specified drive.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION DriveType(
	cDrive
) AS USUAL CLIPPER
Request Example View Source

Parameters

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

Return Value

Type: Usual
Numeric
Remarks
The following table explains the number DriveType( ) returns and the corresponding drive type description:
NumberDrive Type
1No type
2Floppy disk
3Hard disk
4Removable drive or network drive
5CD-ROM
6RAM disk1
Note Note
Because there are many different types of RAM disks, you might get inconsistent return results.
See Also