动态硬盘支持DriveGetSerial获取卷号吗?
DriveGetSerial一般获取的是C盘的卷号,如果是动态硬盘可以获取吗?另外,每台电脑的C盘卷号是不是不一样的? 肯定不一样
Local $StrASCIIArray =
Local $PartionStr
Local $i
Local $PartionSerialStr
Local $infoStr
For $i = Asc("A") To Asc("Z")
$StrASCIIArray = $i
$PartionStr = StringFromASCIIArray($StrASCIIArray, 0, UBound($StrASCIIArray) - 1, 1)
$PartionSerialStr = DriveGetSerial($PartionStr)
If Not @error Then
$infoStr &= "分区:"& $PartionStr & @TAB & "卷序列号:" & $PartionSerialStr & @CRLF
EndIf
Next
MsgBox(0, "本机分区卷序列号为", $infoStr)
谢谢,找机会测试一下
页:
[1]