|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack FileSys Procedures Disk DiskFreeExtended|
|See also: GetDiskDriveType, GetFileSize|
The function DiskFreeExtended returns the number of available bytes on the disk Drive. The parameter Drive may assume values between 0 and 25 (for disk A to disk Z). Note that this function is an extended version of the DiskFree routine (unit SysUtils), which fails if the disk exceeds more than 4 GB. Please mind the changed definition of the drive specification (as compared to DiskFree).
DiskFreeExtended returns a value of -1 if the number of free bytes cannot determined for some reason.