Raz-Soft » Blog Archive » Finding files… Buy Cheap Software
Mxhost update… »
« hi5 ajunge si in metrou… wtf?

Finding files…

C++:
  1. void __fastcall TForm1::Button1Click(TObject *Sender)
  2. {
  3.  TSearchRec Sr;
  4.  int Attributes = faAnyFile; 
  5.  
  6.  if (FindFirst("C:\\tmp\\*.*", Attributes, Sr) == 0)
  7. {
  8.      do
  9.      {
  10.              if ((Sr.Attr & Attributes) == Sr.Attr)
  11.                ListBox1->Items->Add(Sr.Name);
  12.    
  13.        } while (FindNext(Sr) == 0);
  14.  
  15.     FindClose(Sr);
  16.  }

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.

    2 Responses to “Finding files…”

  1. Adrian Nasulea ROMANIA Says:

    multumesc


  2. Raz ROMANIA Says:

    cu placere :)


Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> and all YM emotions