Topic: Drive Space in C++


Author: roark@atlanta.com (Terrell Roark)
Date: Fri, 23 Sep 1994 18:43:51
Raw View
I'm looking for a way to look at a particular drive and tell what the free
drive space is...  Does anyone know of a simple set of commands to do this???




Author: mwt@lightside.com (Mark Thompson)
Date: 24 Sep 1994 09:29:27 GMT
Raw View
In article <roark.2.0012BB4C@atlanta.com>, roark@atlanta.com (Terrell Roark) says:
>
>I'm looking for a way to look at a particular drive and tell what the free
>drive space is...  Does anyone know of a simple set of commands to do this???


You need to specify what compiler you're using.  In Borland 4.0 there's
two ways, getdfree and _dos_getdiskfree.  Both of these use dos.h as the header file.  If checking
a compressed file, you need to take the value you recieve with a grain of salt.


Mark Thompson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=
Micro Masters                                     mwt@lightside.com
PO Box 1709                                       (818) 332-5998
West Covina, California
The opinions given do represent those of Micro Masters, though they
probably aren't really my own.




Author: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Date: Sat, 24 Sep 1994 15:09:13 GMT
Raw View
roark@atlanta.com (Terrell Roark) writes:

>I'm looking for a way to look at a particular drive and tell what the free
>drive space is...  Does anyone know of a simple set of commands to do this???

This is operating-system specific.  There is no portable way of doing this.

--
Fergus Henderson - fjh@munta.cs.mu.oz.au