Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 02/26/22 in all areas

  1. Uwe Raabe

    fast file searching, what do you recommend, please?

    TDirectory.GetFiles/GetDirectories/GetFileSystemEntries have overloads taking a TFilterPredicate. You can provide your own accept function with that. The following example lists all dll and exe files from the given folder in one go. files := TDirectory.GetFiles('C:\Temp\', function(const Path: string; const SearchRec: TSearchRec): Boolean begin Result := TPath.MatchesPattern(SearchRec.Name, '*.exe') or TPath.MatchesPattern(SearchRec.Name, '*.dll'); end);
  2. Andrea Magni

    fast file searching, what do you recommend, please?

    Give a try to UltraSearch, I use it regularly and it is really good.
×