Article View: borland.public.cppbuilder.nativeapi
Article #1661Directory Contents
From: Jeff
Date: Wed, 27 Jun 2007 16:44
Date: Wed, 27 Jun 2007 16:44
15 lines
1337 bytes
1337 bytes
Does anyone know a way to obtain a list of files in a directory without
opening any of the files? When I use the code below FindFirst() returns 5
(Access denied) because another application has the files open.
TSearchRec srSearch;
if (FindFirst(strPath, faAnyFile, srSearch) == 0)
{
do
{
strFileInfo += srSearch.Name
} while (FindNext(srSearch) == 0);
FindClose(srSearch);
}
}
Technical Details
Message-ID:
<46829425@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e2485f93863e826a,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Directory Contents Date: Wed, 27 Jun 2007 10:44:20 -0600 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 198.68.195.79 Message-ID: <46829425@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182962725 198.68.195.79 (27 Jun 2007 09:45:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!ucberkeley!news-hog.berkeley.edu!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail