Disk space free on a partition? 
Author Message
 Disk space free on a partition?

How do I find out how much disk space is free on a partition/drive letter?
I can't seem to find the the methods in any othe System.IO.* classes.  I
must be missing something.  Thanx,

- Chris



Tue, 29 Jun 2004 11:32:59 GMT  
 Disk space free on a partition?
Something like this should work.
ManagementObject disk = new
ManagementObject("win32_logicaldisk.deviceid=\"C:\"");
Console.WriteLine("{0}", disk["FreeSpace"]);


Quote:
> How do I find out how much disk space is free on a partition/drive letter?
> I can't seem to find the the methods in any othe System.IO.* classes.  I
> must be missing something.  Thanx,

> - Chris



Tue, 29 Jun 2004 12:38:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How To Retrieve Free Disk Space and Total Disk Space

2. How To Retrieve Free Disk Space and Total Disk Space

3. get free disk space on large hard drives

4. free space disk

5. Trouble getting disk free space

6. how to get free disk space?

7. invalid file or disk full @ 244Mb free space on building tested sample code

8. Getting IPaddress & Free disk space

9. free space on hard disk drive HDD...

10. How to know free Disk space value with VC++

11. get disk free space

12. free disk space

 

 
Powered by phpBB® Forum Software