procedure SearchFile(Path: string); var SR: TSearchRec; begin if Path[Length(Path)] <> '/' then Path := Path + '/'; if FindFirst(Path + '*.ini', faAnyFile, SR) = 0 then begin repeat if (SR.Name <> '.') and (SR.Name <> '..') then ComboBox1.Items.Add(SR.Name); until FindNext(SR) <> 0; end; FindClose(SR); end;