By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,982 Members | 1,114 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,982 IT Pros & Developers. It's quick & easy.

Drives

P: n/a
Does anyone have any information for how to determine if drives are
attached via internal, USB 1.1, USB 2.0, Firewire 400, Firewire 800,
etc?

May 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Joey,

In .NET 2.0, use the DriveInfo class. You can use the DriveType
property to return a value from the DriveType enumeration to indicate what
kind of drive it is. Unfortunately, it isn't very descriptive.

You could try and get all instances of Win32_PhysicalMedia from WMI
(through the System.Management namespace), and then check the MediaType
property. This will give you a little more information, but I don't know if
it will give you everything you need.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<jo*********@topscene.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Does anyone have any information for how to determine if drives are
attached via internal, USB 1.1, USB 2.0, Firewire 400, Firewire 800,
etc?

May 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.