procedure FindFile(Dir: String);
var
sr: TSearchRec;
FileAttrs: Integer;
begin
FileAttrs := faAnyFile;
if FindFirst(Dir + '*.mp3', FileAttrs, sr) = 0 then
begin
if (sr.Attr and FileAttrs) = sr.Attr then
ListBox1.Items.Add(Dir + sr.Name);
while FindNext(sr) = 0 do
if (sr.Attr and FileAttrs) = sr.Attr then
ListBox1.Items.Add(Dir + sr.Name);
FindClose(sr);
end;
end;