使用WMI查询检测SD卡 [英] Detect SD card using WMI Query
本文介绍了使用WMI查询检测SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个查询,该查询返回连接在以下位置的USB设备:
I have a query that return USB devices attached in:
SelectQuery sq = new SelectQuery("select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'");
ManagementObjectCollection MOC = new ManagementObjectSearcher(sq).Get();
但是它不会检索SD卡信息.
But it doesn't retrieve the SD card information.
如何使用WMI查询来检索此SD卡信息?
How do i can retrieve this SD cards information using WMI queries?
推荐答案
i修改了从Win32_DiskDrive中选择DeviceID,模型,其中InterfaceType ='USB'",删除了其中InterfaceType ='USB"
i modified "select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'" removing "where InterfaceType='USB"
这篇关于使用WMI查询检测SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文