.NET Framework Drive Object

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DBLWizard

    .NET Framework Drive Object

    Howdy All,

    I have been looking and am amazed that there is not an equivilent
    object as the WSH or FSO in .net. To be able to get Drive information
    you either have to use COM on one of the two afore mentioned objects.

    Or use the WSI queries which are not the most user friendly. Granted
    they contain a ton of information but I have to write my own English
    translation function if I want "Drive Types" in words.

    All of the postings I can find on this are dated pre 2003. Have there
    been any updates and I am just missing them or are these the only
    options?

    Thanks

    dbl

  • Sean Hederman

    #2
    Re: .NET Framework Drive Object

    What are you trying to do? System.IO.Direc tory and
    Environment.Get LogicalDrives should be anough for most purposes.

    "DBLWizard" <ibflyfishin@ya hoo.com> wrote in message
    news:1110494620 .301437.167750@ g14g2000cwa.goo glegroups.com.. .[color=blue]
    > Howdy All,
    >
    > I have been looking and am amazed that there is not an equivilent
    > object as the WSH or FSO in .net. To be able to get Drive information
    > you either have to use COM on one of the two afore mentioned objects.
    >
    > Or use the WSI queries which are not the most user friendly. Granted
    > they contain a ton of information but I have to write my own English
    > translation function if I want "Drive Types" in words.
    >
    > All of the postings I can find on this are dated pre 2003. Have there
    > been any updates and I am just missing them or are these the only
    > options?
    >
    > Thanks
    >
    > dbl[/color]


    Comment

    • David Logan

      #3
      Re: .NET Framework Drive Object

      I am wanting to get Drive Type, Volumn Information, if removable drive
      has media in it, the Capacity, and available Free space.

      And I don't see any Framework object that will do that. Yes I realize
      that I could write my own class that uses the WMI but as I said it just
      surprises me that this type of object was not included in the Framework.

      Thanks

      dbl



      *** Sent via Developersdex http://www.developersdex.com ***
      Don't just participate in USENET...get rewarded for it!

      Comment

      Working...