或者 vbs的也可以。嘿嘿
Set Fso = CreateObject("Scripting.FileSystemObject")
Set B = Fso.Drives
For Each A in B
If A.DriveType = 1 Then
aDisk = aDisk & A.DriveLetter & ": "
End If
Next
aDisk = Replace(aDisk, "A: ","")
If aDisk = "" Then
WScript.Echo "U盘设备未插入"
Else
WScript.Echo "U盘符为 " & aDisk
End If
这个是识别的。网上找来的。至于打开我就不会了。作者: Batcher 时间: 2009-2-18 23:06 标题: 回复 7楼 的帖子