471,356 Members | 1,635 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

.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

Jul 21 '05 #1
2 1082
What are you trying to do? System.IO.Directory and
Environment.GetLogicalDrives should be anough for most purposes.

"DBLWizard" <ib*********@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Jul 21 '05 #2
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!
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by Kamilche | last post: by
2 posts views Thread by Someone Please Help! | last post: by
8 posts views Thread by Dennis | last post: by
2 posts views Thread by DBLWizard | last post: by
13 posts views Thread by dancer | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.