procedure SearchAllFile(DirName: String; Files: TStrings);
var
fpath: String;
sr: TsearchRec;
begin
fpath:=DirName+'/*.*';
if FindFirst(fpath,faAnyFile, sr)=0 then
repeat
if (sr.Name <> '.')and(sr.Name <> '..') then
begin
if (sr.Attr and faDirectory)=faDirectory then begin
SearchAllFile(DirName+'/'+sr.Name, Files);
Files.Add(sr.Name);
end;
end;
until FindNext(sr) <> 0;
FindClose(sr);
end;