Previous: DiskFreeKB function To the Table of Content Next: DiskSizeKB function

- 4.24.2.3 -
Standard Units
Dos Unit
Dos Unit Procedures and Functions

DiskSize function

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


Previous: DiskFreeKB function To the Table of Content Next: DiskSizeKB function
DiskFreeKB function Table of Content DiskSizeKB function

- 4.24.2.3 -