Returns the total capacity of the drive which contains the specified path, in megabytes.
Capacity := DriveGetCapacity(Path)
Type: String
Any path contained by the drive (might also work on UNC paths and mapped drives).
Type: Integer
This function returns the total capacity of the drive which contains Path, in megabytes.
An exception is thrown on failure.
In general, Path can be any path. Since NTFS supports mounted volumes and directory junctions, different paths with the same drive letter can produce different amounts of capacity.
DriveGetSpaceFree, Drive functions
See example #1 on the Drive Functions page for a demonstration of this function.