Possible Duplicate:
Get List Of USB Devices
Im making a WPF app.
Im looking for a way to list all plugged in USB devices (disks!) in my comboBox.
I can list all drives using DriveInfo.GetDrives(), but is there a simple way to filter that to USB devices?
thanx
 foreach (DriveInfo drive in DriveInfo.GetDrives())
 {
     if (drive.DriveType == DriveType.Removable)
     {
      ..
     }
 }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With