返回指定驱动器的类型.
DriveGetType ( "路径" )
路径 | 获得相关信息的驱动器路径. |
成功: | 返回指定驱动器的类型: "Unknown"(未知类型), "Removable"(可移动), "Fixed"(固定的), "Network"(网络), "CDROM"(光驱), "RAMDisk"(内存盘) |
失败: | 返回 ""(空字符串), 并将 @error 设为 1. |
Local $sType = DriveGetType(@HomeDrive & "\") ; Find the status of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Drive Type:", $sType)