Finding files…
C++:
-
void __fastcall TForm1::Button1Click(TObject *Sender)
-
{
-
TSearchRec Sr;
-
int Attributes = faAnyFile;
-
-
if (FindFirst("C:\\tmp\\*.*", Attributes, Sr) == 0)
-
{
-
do
-
{
-
if ((Sr.Attr & Attributes) == Sr.Attr)
-
ListBox1->Items->Add(Sr.Name);
-
-
} while (FindNext(Sr) == 0);
-
-
FindClose(Sr);
-
}
related things:
Author: Raz | On May 7th, 2007 | C++ Builder | 2 Comments
Q: So what can I do next?
A: You can Buy me a Beer or Coffee. You can say Hi! or peek on the related stuff. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Spammers: Beware of » my Dog! «





2 Responses to “Finding files…”
May 7th, 2007 at 3:29 pm
multumesc
May 7th, 2007 at 4:32 pm
cu placere