meta data for this page
ibec_GetDiskFreeSpace
The IBEBlock function, ibec_GetDiskFreeSpace, retrieves information about the amount of space that is available on a disk volumne.
Description
No additional description…
Syntax
function ibec_GetDiskFreeSpace(DirectoryName : variant) : variant;
DirectoryName is a directory on the disk. If this parameter is NULL or an empty string, the function uses the root of the current disk. ibec_GetDiskFreeSpace returns the total number of free bytes on a disk that are available to the user who is associated with the calling thread.
Example
execute ibeblock as begin FreeSpace = ibec_GetDiskFreeSpace('C:\'); ibec_ShowMessage('Total free space: ' || :FreeSpace || ' bytes'); end;