z.b. mit dieser Funktion:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
| function ReadDir(Path, Mask:string; ShowPath: boolean): TStringlist; var SL: TStringList; SRec: TSearchRec; begin SL := TStringList.Create; FindFirst(Path + Mask + #0, not faDirectory, SRec); if ShowPath then SL.Add(Path + SRec.Name) else SL.Add(SRec.Name); while FindNext(SRec) = 0 do if ShowPath then SL.Add(Path + SRec.Name) else SL.Add(SRec.Name);
FindClose(SRec); Result := SL; end; |
_________________
MFG
Michael Springwald, "kann kein englisch...."