FT_DSKSIZE()
Return the maximum capacity of a fixed disk
──────────────────────────────────────────────────────────────────────────────

Syntax

FT_DSKSIZE( [ <cDrive> ] ) -> nMaxCapacity

Arguments

<cDrive> is the fixed disk to query. If no drive is sent, the
operation will be performed on the default drive. Send without
the ":".

Returns

An integer representing the maximum disk capacity in bytes.

Description

Function utilizing FT_INT86() to return Maximum Disk Size.
Uses FT_INT86() through the internal function _ftDiskInfo().

Examples

? FT_DSKSIZE() // Maximum capacity for default drive
? FT_DSKSIZE( "D" ) // Maximum capacity for Drive D:

Source: DISKFUNC.PRG

Author: Robert A. DiFalco