- 4.74.2.4. -
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.4. DiskSize function
4.74.2.4. 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
- 4.74.2.4. -