Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drive information...
Message
From
24/07/2003 21:46:14
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Drive information...
Miscellaneous
Thread ID:
00813365
Message ID:
00813365
Views:
33
Hi Gang,
I have been looking for a .NET way to get the drive/volume information; Name,device type, CRC and free space. I have had no luck. Rocky Lohtka stated the following in an MSDN article titled Drives and Directories and Files! Oh, My! (Adventures in .NET)


The call to GetLogicalDrives returns an array of String values. Each value is in the form X:\, where "X" is the letter of the drive.

Unfortunately this is the extent of the drive information available from the .NET Framework. As it is often nice to get more information, such as the volume name, device type and free space, I looked for other alternatives. The simplest alternative is to use the FileSystemObject from the Windows Scripting Host (WSH) component through COM interop.


Can this be true? I hope that was .NET 2000 and 2003 has included this. I would prefer not to use the scripting host in my app.

My thanks in advance,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Next
Reply
Map
View

Click here to load this message in the networking platform