[Tutor] drive size

alan.gauld@bt.com alan.gauld@bt.com
Mon Feb 3 12:26:12 2003


> is there an easy way to get a systems local drives along with its 
> totalspace, freespace, and usedspace.

Like so many things it depends on the OS.

If its windows there are Win32 API functions that can tell you this. 
Probably they are exposed in Mark Hammonds Winall package.

If its Unix/Mac OS then there are other ways. But my guess is you 
are on Windows since those are the only folks who normally are interested 
in low level details like drives.

Alan g.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld/