以MB(兆字节)为单位返回指定路径所在分区的容量大小.
DriveSpaceTotal ( "路径" )
| 路径 | 要获得相应信息的驱动器路径. | 
| 成功: | 以MB(兆字节,浮点小数)为单位返回指定路径所在分区的容量大小. | 
| 失败: | 把 @error 设为 1. | 
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")