USB Disk
-
Hi I have a problem. I want to detect USB Disk, but when I use GetDriveType, fuction return 3 drives instead 1 (it also return floppy disk and remote hard drive). I what to know alternative of GetDriveType.
Hi, you can use WMI classes to get more details, such as the interface ("USB"). However it is not that easy, and it keeps getting more and more complex to figure out a general solution as more device types emerge: you have to discern USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc. However an ad hoc solution to a specific problem is most certainly doable, given time and lots of googling. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.
-
Hi, you can use WMI classes to get more details, such as the interface ("USB"). However it is not that easy, and it keeps getting more and more complex to figure out a general solution as more device types emerge: you have to discern USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc. However an ad hoc solution to a specific problem is most certainly doable, given time and lots of googling. :)
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.