Previous: 4.24.2.2. DiskFreeKB To the Table of Contents Next: 4.24.2.4. DiskSizeKB
4.24.2.2. DiskFreeKB Table of Contents 4.24.2.4. DiskSizeKB

- 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


Previous: 4.24.2.2. DiskFreeKB To the Table of Contents Next: 4.24.2.4. DiskSizeKB
4.24.2.2. DiskFreeKB Table of Contents 4.24.2.4. DiskSizeKB

- 4.24.2.3. -