Returns the free disk space of a path in Megabytes.
DriveSpaceFree ( "path" )
Parameters
path | Path of drive to receive information from. |
Return Value
Success: | Returns free disk space in Megabytes as a float number. |
Failure: | Returns numeric 1 and sets @error to 1. |
Remarks
DriveSpaceFree may even work when a complete directory path (that exists) is given. However, a file path won't work.
Related
DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceTotal, DriveStatus
Example
$var = DriveSpaceFree( "c:\" )
MsgBox(4096, "Free space on C:", $var & " MB")