返回指定的驱动器分区的卷标(如果存在).
DriveGetLabel ( "路径" )
路径 | 要获得卷标信息的驱动器盘符. |
成功: | 以字符串的形式返回指定驱动器的卷标. |
失败: | 设置 @error 为 1. |
Local $sLabel = DriveGetLabel(@HomeDrive & "\") ; Find the volume label of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Volume Label: ", $sLabel)