how to determine USB Flash drive manufacturer?

后端 未结 8 1177
栀梦
栀梦 2020-12-06 07:14

I need my program to work only with certain USB Flash drives (from a single manufacturer) and ignore all other USB Flash drives (from any other manufacturers).

is it

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 07:59

    If Win32_DiskDrive objects do not yield the information you are looking for, you could also look at Win32_PhysicalMedia class of WMI objects. They have Manufacturer, Model, PartNumber, and description properties which may prove useful.

提交回复
热议问题