GetFreeDiskSpace Method (SystemFunctions)

Action

Returns how much free disk space is available on the specified drive.

Syntax

C#

dFreeDiskSpace = GetFreeDiskSpace (sDrive [, fsuFileSizeUnit]);

VB

dFreeDiskSpace = GetFreeDiskSpace (sDrive [, fsuFileSizeUnit])
Variable Description
dFreeDiskSpace The amount of free disk space that is available on the specified drive. Double.
sDrive The drive. String.
fsuFileSizeUnit Optional: The unit in which the file size is measured. Defaults to byte. FileSizeUnit.