Function Reference

DriveSpaceTotal

Returns the total diskspace 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

 

Example


$var = DriveSpaceTotal( "c:\" )
MsgBox(4096, "Total Space on C:", $var & " MB")