[Home] [Puzzles & Projects] [Delphi Techniques] [Math topics] [Library] [Utilities]
|
|
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. 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 programmersThe 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 source
(Some DFF Library units will be required to
recompile this program.
|
[Feedback] [Newsletters (subscribe/view)] [About me]Copyright © 2000-2018, Gary Darby All rights reserved. |