Article View: borland.public.cppbuilder.nativeapi
Article #15096Re: Is there any simple API function to find out the space used by a directory
From: Ed Mulroy [TeamB]
Date: Sun, 20 Jul 2003 17:34
Date: Sun, 20 Jul 2003 17:34
11 lines
1497 bytes
1497 bytes
Yes, there is a simple set of functions to do that. Use the Windows API function FindFirstFile, loop calling FindNextFile and the end until no more are found and finish with a call to FindClose. In the loop add up the size of the files that are found. . Ed > Emmanuel wrote in message > news:3f1ab7a2@newsgroups.borland.com... > Is there any simple API function to find out the space used > by a directory?
Technical Details
Message-ID:
<3f1ad2b5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f1ab7a2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,37ac4db4bc556140 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-20 10:39:20 PST From: "Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1ab7a2@newsgroups.borland.com> Subject: Re: Is there any simple API function to find out the space used by a directory Date: Sun, 20 Jul 2003 13:34:28 -0400 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <3f1ad2b5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058722485 24.74.175.102 (20 Jul 2003 10:34:45 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail