Board index » delphi » Help needed with recursive search

Help needed with recursive search

I have just made a small utility that does a recursive search through the
local hard drive with the Find First Find Next method to find file names or
extensions and display them.
This seems to work fine however the "Program Files" directory is not
searched if it is a sub directory only if its selected as the directory to
be searched.
I have downloaded a delphi search facility with source code from about.com
and this has the same problem.
Could any one help?
Thanks Steve
 

Re:Help needed with recursive search


what are the attributes of your TsearchRec ?
And the attributes of your program files folder ?
maybe a system or hidden directory is ignored if both attributes don't match

Denis

Re:Help needed with recursive search


Is 'faAnyFile' added to the attributes of FindFirst?:
Findfirst('C:\program files\*.*', faAnyFile,Searchrec);

Quote
"Steve Mason" <mason.st...@ntlworld.com> wrote in message

news:a65v7.6288$jE3.765588@news6-win.server.ntlworld.com...
Quote
> I have just made a small utility that does a recursive search through the
> local hard drive with the Find First Find Next method to find file names
or
> extensions and display them.
> This seems to work fine however the "Program Files" directory is not
> searched if it is a sub directory only if its selected as the directory to
> be searched.
> I have downloaded a delphi search facility with source code from about.com
> and this has the same problem.
> Could any one help?
> Thanks Steve

Other Threads