p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C++ Programming (http://p2p.wrox.com/forumdisplay.php?f=89)
-   -   How to get free disk space in win32 (http://p2p.wrox.com/showthread.php?t=13196)

liesberg May 20th, 2004 01:37 AM

How to get free disk space in win32
 
Hi there

  I want to know how to get the free disk space for a drive (e.g.:C:\) in win32 with c++. What is the API function and how to use it ?

Thanks very much
liesberg (liesberg@bol.com.br)


nokomis July 3rd, 2004 10:48 AM

struct dfree dtable;
   getdfree(1, &dtable);
   discspace = (long) dtable.df_avail * (long)dtable.df_bsec * (long)dtable.df_sclus;


Georges

PinusClay July 13th, 2007 03:17 PM

Georges
The instructions given don't work in C Borland compiler, even with all the necessary #include(s).

I am still looking for an answer to Liesberg question.
Thanks
Claudio (pinheiro.claudio@uol.com.br)


All times are GMT -4. The time now is 11:30 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.