Returns the total disk space of a path in Megabytes.
DriveSpaceTotal ( "path" )
path | Path of drive to receive information from. |
Success: | the diskspace in Megabytes as a float number. |
Failure: | sets the @error flag to 1. |
DriveSpaceTotal() may even work when a complete directory path (that exists) is given. However, a file path won't work.
DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveStatus, FileGetSize
#include <MsgBoxConstants.au3>
Local $iTotalSpace = DriveSpaceTotal(@HomeDrive & "\") ; Find the total disk space of the home drive, generally this is the C:\ drive.
MsgBox($MB_SYSTEMMODAL, "", "Total Space: " & $iTotalSpace & " MB")