/ Published in: Delphi
Expand |
Embed | Plain Text
//определение количества файлов в папке function GetFileCount(Dir: string): integer; var fs: TSearchRec; begin Result := 0; if FindFirst(Dir + '\*.jpg', faAnyFile - faDirectory - faVolumeID, fs) = 0 then repeat inc(Result); until FindNext(fs) <> 0; FindClose(fs); end;
You need to login to post a comment.
