# 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: | the diskspace in Megabytes as a float number.
Failure: | sets the @error flag 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

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