在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
function ListFiles(path: string): TStringList; var SearchRec: TSearchRec; found: integer; begin result := TStringList.Create; found := FindFirst(path + '\' + '*.*', faAnyFile, SearchRec); if not DirectoryExists(path) then begin Result.Clear; exit; end; while found = 0 do begin if (SearchRec.Name <> '.') and (SearchRec.Name <> '..') and (SearchRec.Attr <> faDirectory) then begin if ExtractFileExt(SearchRec.Name) = '.dfm' then result.Add(path + '\' + SearchRec.Name); end else if (SearchRec.Attr = faDirectory) and (SearchRec.Name <> '.') and (SearchRec.Name <> '..') then begin Result.AddStrings(ListFiles(path + '\' + SearchRec.Name)); end; found := FindNext(SearchRec); end; FindClose(SearchRec); end; http://blog.csdn.net/y281252548/article/details/51659208
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论