# Function Reference

DriveSpaceFree

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 0 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.
Use the Round function if the return value is too precise.

Related

DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceTotal, DriveStatus

Example

$var = DriveSpaceFree( "c:\" )
MsgBox(4096, "Free space on C:", $var & " MB")