delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/09/13:43:03

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DOS repertory
Date: 9 May 2000 17:39:02 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 15
Message-ID: <8f9ifm$o6n$1@nets3.rz.RWTH-Aachen.DE>
References: <2MWR4.13$8K4 DOT 109676 AT nnrp2 DOT proxad DOT net>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 957893942 24791 137.226.32.75 (9 May 2000 17:39:02 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 9 May 2000 17:39:02 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Muadib <jbbufquin AT free DOT fr> wrote:
> Which function returns the weight (in Ko for example) of a DOS repertory (so
> the weight of all of his files) ?

[Translation to actual English: He wants to know the overall size (in
KB or so) of a DOS directory's files]

There is no such function. But you can write it quite easily, using
the 'findfirst' or 'opendir' methods to traverse the directory, and
the 'stat' function to find the filesizes.


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019