by Nelly (7 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
I recieved an e.mail from Randy Porosky asking if can update
the Application so it would search for multiple Files and
list the Search Name only, well, it now searches for multiple
Files and adds the search name to a seperate listbox. You
would expect the search to take double the time when adding
another File to the SearchList, but with a litte recursive
programming it only adds approx 0.6 seconds to the search time.
So again, this Application will search for multiple Files on
multiple Drives, Folders etc, VERY FAST, eg. On my system it
took 3.5sec to search 1079 Folders for 1 File, because of the
recursive programming it took 4.1sec to search 1079 Folders
for 2 Files.
Inputs
Search String
Assumes
Read the Capital comments first
Code Returns
True if Found
Side Effects
This is FAST
API DeclarationsFindFirstFile etc, GetTickCount