问题
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