函数参考


DriveGetType

返回指定驱动器的类型.

DriveGetType ( "路径" )

参数

路径 获得相关信息的驱动器路径.

返回值

成功: 返回指定驱动器的类型: "Unknown"(未知类型), "Removable"(可移动), "Fixed"(固定的), "Network"(网络), "CDROM"(光驱), "RAMDisk"(内存盘)
失败: 返回 ""(空字符串), 并将 @error 设为 1.

注意/说明

以上列出的返回值可能是不完全的.

相关

DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal, DriveStatus, CDTray

示例/演示


Local $sType = DriveGetType(@HomeDrive & "\") ; Find the status of the home drive, generally this is the C:\ drive.
MsgBox(4096, "Drive Type:", $sType)