var
TmpPath, TmpName: string;
TmpSearchRec: TSearchRec;
begin
TmpPath := 'c:/abc/'+ '*.*';
if FindFirst(TmpPath, faAnyFile, TmpSearchRec) = 0 then
begin
repeat
TmpName := ExtractFileName(TmpSearchRec.Name);
if Pos('abc', TmpName) > 0 then {此处判断TmpName是否符合要求}
begin
......
end;
until FindNext(TmpSearchRec) <> 0;
FindClose(TmpSearchRec);
end;
end;