Drives

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joey.powell@topscene.com

    Drives

    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?

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Drives

    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_PhysicalM edia from WMI
    (through the System.Manageme nt 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]
    - mvp@spam.guard. caspershouse.co m

    <joey.powell@to pscene.com> wrote in message
    news:1147887013 .663333.308120@ j73g2000cwa.goo glegroups.com.. .[color=blue]
    > 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?
    >[/color]


    Comment

    Working...