Show: Delphi C++
Display Preferences

System.SysUtils.DiskFree

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DiskFree(Drive: Byte): Int64;

C++

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

Properties

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

Description

Returns the number of free bytes on a specified drive.

DiskFree returns the number of free bytes on the specified drive, where 0 = Current, 1 = A, 2 = B, and so on.

DiskFree returns -1 if the drive number is invalid.

Note: DiskFree is only available on Windows.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance