DiskFree
Purpose
To determine the free disk space of a drive.
Syntax
DiskFree {folder} to {variable}
Where {folder} is a String that contains the name of the root folder of a drive, and {variable} is the name of an integer variable that will contain the amount of disk space (in bytes).
What It Does
The value of {variable} is the amount of free space on the drive.
Example
The example below shows how much disk space is on the C drive:
Function DiskFreeSpace String sPath Returns Integer
Integer iSize
DiskFree sPath to iSize
Function_Return iSize
End_Function
Integer iSize
Get DiskFreeSpace "C:" to iSize