Previous: 4.74.2.4. DiskSize function To the Table of Contents Next: 4.74.2.6. DosVersion function
4.74.2.4. DiskSize function Table of Contents 4.74.2.6. DosVersion function

- 4.74.2.5. -
Table of Contents
4. Standard Units
4.74. WinDos - MS-DOS function emulation for OS/2 and Win32
4.74.2. WinDos Unit Procedures and Functions
4.74.2.5. DiskSizeKB function


4.74.2.5. DiskSizeKB function

Targets: MS-DOS, OS/2, Win32


Dos Unit, WinDos Unit

Returns the total size, in Kilobytes, of a specified disk drive.

Declaration:
function DiskSizeKB(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 := DiskSizeKB(0);  // size in KB of current drive
  size := DiskSizeKB(3);  // size in KB of drive C:
See also:
DiskSize
DiskFree


Previous: 4.74.2.4. DiskSize function To the Table of Contents Next: 4.74.2.6. DosVersion function
4.74.2.4. DiskSize function Table of Contents 4.74.2.6. DosVersion function

- 4.74.2.5. -