Detect SD card using WMI Query

隐身守侯 提交于 2019-12-25 04:50:49

问题


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();

But it doesn't retrieve the SD card information.

How do i can retrieve this SD cards information using WMI queries?


回答1:


i modified "select DeviceID, Model from Win32_DiskDrive where InterfaceType='USB'" removing "where InterfaceType='USB"



来源:https://stackoverflow.com/questions/27131027/detect-sd-card-using-wmi-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!