Show: Delphi C++
Display Preferences

System.SysUtils.DiskSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DiskSize(Drive: Byte): Int64;

C++

extern DELPHI_PACKAGE __int64 __fastcall DiskSize(System::Byte Drive);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns the size, in bytes, of a specified drive.

DiskSize returns the size in bytes of the specified drive, where 0 = Current, 1 = A, 2 = B, and so on. DiskSize returns -1 if the drive number is invalid.

Note: DiskSize is only available on Windows.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance