Searching for SD-cards

Posted by Shaddix on Stack Overflow See other posts from Stack Overflow or by Shaddix
Published on 2010-03-16T09:13:58Z Indexed on 2010/03/16 9:16 UTC
Read the original article Hit count: 244

Filed under:
|

I need to implement searching for SD-cards in my program.

Currently I'm using search for all removable devices like:

searcher = New Management.ManagementObjectSearcher("\\localhost\root\cimv2", "SELECT DeviceId FROM Win32_LogicalDisk WHERE DriveType=2 AND Size>0");

But it find USB flash drives also. Is there a proper way to find SD-cards only? What I need is in general only drive letter for available SD-cards (like "F:" or so).

© Stack Overflow or respective owner

Related posts about c#

Related posts about removable-drive