- 4.24.2.3. -
Table of Contents
4. Standard Units
4.24. DOS - MSDOS support unit
4.24.2. DOS Unit Procedures and Functions
4.24.2.3. DiskSize
4.24.2.3. DiskSize
Targets: MS-DOS, OS/2, Win32
Dos Unit, WinDos Unit
Returns the total size, in bytes, of a specified disk drive.
Declaration:
function DiskSize(Drive: Byte): Longint;
Drive is the drive to check where A = 1, B = 2, and so on.
If Drive is zero then the current drive is used.
Example:
size := DiskSize(0); // size of current drive
size := DiskSize(3); // size of drive C:
See also:
DiskSizeKB
DiskFree
- 4.24.2.3. -