Fast File Search

[Home]   [Puzzles & Projects]    [Delphi Techniques]   [Math topics]   [Library]   [Utilities]




Search WWW


As of October, 2016, Embarcadero is offering a free release of Delphi (Delphi 10.1 Berlin Starter Edition ).     There are a few restrictions, but it is a welcome step toward making more programmers aware of the joys of Delphi.  They do say "Offer may be withdrawn at any time", so don't delay if you want to check it out.  Please use the feedback link to let me know if the link stops working.


Support DFF - Shop

 If you shop at Amazon anyway,  consider using this link. 


We receive a few cents from each purchase.  Thanks


Support DFF - Donate

 If you benefit from the website,  in terms of knowledge, entertainment value, or something otherwise useful, consider making a donation via PayPal  to help defray the costs.  (No PayPal account necessary to donate via credit card.)  Transaction is secure.

Mensa Daily Puzzlers

For over 15 years Mensa Page-A-Day calendars have provided several puzzles a year for my programming pleasure.  Coding "solvers" is most fun, but many programs also allow user solving, convenient for "fill in the blanks" type.  Below are Amazon  links to the two most recent years.

Mensa 365 Puzzlers  Calendar 2017

Mensa 365 Puzzlers Calendar 2018

(Hint: If you can wait, current year calendars are usually on sale in January.)


Feedback:  Send an e-mail with your comments about this program (or anything else).

Search only




Never being able to get Windows 7 Search to work as advertised, I developed this file name search program as the easy way out.  Usage should be self explanatory. Choose a drive, then an initial folder for the search, then a "mask" to filter files to be listed.   Click the "Find Files" button to start the search.

The output list is a simple tree structure with each folder/subfolder indented by a few character positions. This avoids very long file name strings for deeply embedded files.

There are options to set the characters used as a "placeholder" in the output list.  There is one for folders and another for files in order make it clear which is which.  The characters will be inserted left of the displayed entries. Default is minus character for folders and space character for files.

Number of found files displayed can be limited to 10, 100, 1000 or "All".   There is also a Stop button displayed during runs which will abort the search when clicked.

Files with associated programs can be opened and folders can be explored by double clicking on any line entry in the output list.

For programmers

The hardest part of the programming was splitting full file addresses into tree format while retaining full  address display information.   Since string entries in TMemo cannot have associated entries, the simplest solution was to create a TObject list to with  entries in the same order as the TMeno lines and store the link address and the type of entry (file or folder) there.

The program uses Windows directory search API FindFirst, FindNext, and MatchesMask functions in a recursive GetNext function to bore down through folders to retrieve file names to check for display. 

Download executable

Download source  (Some DFF Library units will be required to recompile this program.

Created: November 11, 2015

Modified: May 11, 2018

  [Feedback]   [Newsletters (subscribe/view)] [About me]
Copyright 2000-2018, Gary Darby    All rights reserved.