I need to implement an SD card search in my program.
I am currently using the search for all removable devices, such as:
searcher = New Management.ManagementObjectSearcher("\\localhost\root\cimv2", "SELECT DeviceId FROM Win32_LogicalDisk WHERE DriveType=2 AND Size>0");
But he also finds USB drives. Is there a way to find only SD cards? In general, I only need the drive letter for the available SD cards (for example, "F:" or so).
source share