Returns the total disk space of a path in Megabytes.
DriveSpaceTotal ( "path" )
| path | Path of drive to receive information from. |
| Success: | Returns diskspace in Megabytes as a float number. |
| Failure: | Sets @error to 1. |
Local $iTotalSpace = DriveSpaceTotal(@HomeDrive & "\") ; Find the total disk space of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Total Space:", $iTotalSpace & " MB")