返回指定驱动器的序列号.
DriveGetSerial ( "路径" )
路径 | 要获得序列号信息的驱动器盘符. |
成功: | 以字符串的形式返回指定驱动器的序列号. |
失败: | 把 @error 设为 1. |
Local $sSerial = DriveGetSerial(@HomeDrive & "\") ; Find the serial number of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Serial Number: ", $sSerial)