21.11.2012, 22:25
|
|
.
|
|
Регистрация: 18.05.2011
Адрес: Омск
Сообщения: 3,970
Версия Delphi: 3,5,7,10,12,XE2
Репутация: выкл
|
|
Или ешё.
Код:
procedure FindFiles(const Path : String);
var
SR : TSearchRec;
Ext : String;
begin
if FindFirst(ExpandFileName(Path + '\*.*'), faAnyFile, SR) = 0 then
try
repeat
if ((SR.Attr and faDirectory) <> 0) and (SR.Name[1] <> '.') then
FindFiles(ExpandFileName(Path + '\' + SR.Name))
else if (SR.Name[1] <> '.') then
ListBox1.Items.Add(SR.Name);
until FindNext(SR) <> 0;
finally
FindClose(SR);
end;
end;
__________________
Je venus de nulle part
55.026263 с.ш., 73.397636 в.д.
|