|
发表于 2012-9-21 16:19:10
|
显示全部楼层
[code]Func _LogicalDiskinfo()
Func _LogicalDiskinfo()
Local $Disk = DriveGetDrive("FIXED")
Local $Diskinfo[1][4]
$Diskinfo[0][0] = 0
If Not @error Then
For $i = 1 To $Disk[0]
$Diskinfo[0][0] += 1
ReDim $Diskinfo[UBound($Diskinfo) + 1][4]
$Diskinfo[$i][0] += $Diskinfo[0][0]
$Diskinfo[$i][1] = StringTrimRight(DriveSpaceFree($Disk[$i]), 5)
$Diskinfo[$i][2] = StringTrimRight(DriveSpaceTotal($Disk[$i]), 5)
$Diskinfo[$i][3] = StringTrimRight(DriveSpaceFree($Disk[$i]) / DriveSpaceTotal($Disk[$i]) * 100, 10) & "%"
Next
EndIf
Return $Diskinfo
EndFunc ;==>_LogicalDiskinfo |
|