Function Reference


DriveSpaceTotal

Returns the total disk space of a path in Megabytes.

DriveSpaceTotal ( "path" )

Parameters

path Path of drive to receive information from.

Return Value

Success: Returns diskspace in Megabytes as a float number.
Failure: Sets @error to 1.

Remarks

DriveSpaceTotal 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, DriveSpaceFree, DriveStatus, FileGetSize

Example


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")