Function DiskType() Foundation

Determines the type of a disk or diskette.

Syntax
DiskType( [<cDrive>] ;  // Default: CurDrive()
        ) --> nDiskType
Return

Possible return values correspond to #define constants found in XBTDISK.CH

Return values of DiskType()
Constant Description
DT_NO_DISK No disk available
DT_DS_SEC_8 Double sided, 8 sectors
DT_SS_SEC_8 Single sided, 8 sectors
DT_DS_SEC_9 Double sided, 9 sectors
DT_SS_SEC_9 Single sided, 9 sectors
DT_DS_SEC_15 Double sided, 15 sectors (HD-Diskette)
DT_35_SEC_9 Double sided, 3,5", 9 sectors (= 5,25 HD)
DT_35_SEC_18 Double sided, 3,5", 18 sectors
DT_HARDDISK Harddisk
DT_CDROM CD-ROM drive

Description

<cDrive> defaults to the current drive. It can be specified as a drive letter without a colon.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.