
21.05.2012, 01:47
|
 |
.
|
|
Регистрация: 18.05.2011
Адрес: Омск
Сообщения: 3,970
Версия Delphi: 3,5,7,10,12,XE2
Репутация: выкл
|
|
Вариант:
Код:
function FindFiles(const Path : String) : Integer;
var
S : TSearchRec;
Res : Integer;
begin
Result := 0;
Res := FindFirst(Path + '\*.mp3', faAnyFile - faVolumeID, S);
while Res = 0 do
begin
with S do
if (Name <> '.') and (Name <> '..') then
begin
ListBox1.Items.Add(Path + '\'+ Name);
inc(Result);
end;
Res := FindNext(S);
end;
FindClose(S);
end;
__________________
Je venus de nulle part
55.026263 с.ш., 73.397636 в.д.
|