Returns the free disk space of a path in Megabytes.
DriveSpaceFree ( "path" )
| path | Path of drive to receive information from. |
| Success: | Returns free disk space in Megabytes as a float number. |
| Failure: | Returns 0 and sets @error to 1. |
Local $iFreeSpace = DriveSpaceFree(@HomeDrive & "\") ; Find the free disk space of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Free Space:", $iFreeSpace & " MB")