RE: How can I search for files?

From: Patty O'Dors (PattyODors_at_discussions.microsoft.com)
Date: 09/04/04


Date: Sat, 4 Sep 2004 04:09:02 -0700

The quick way you can do it without writing an algorithm is to shell a
process that writes the data to a text file, but this is the only way you can
get the information.
e.g.
shell environ("comspec") & " dir ""c:\*.txt"" /b /s >thetextfiles.dat"

> Using VB6, I'd like to do something like VBA's Application.fileSearch.
> I'd like to say: Return a list of all files matching "*.xxx" and recursively
> go thru all sub-directories. The FileListBox does not recursively go down
> directories.
> Any help would be appreciated.
>
> The only way I can think is to have a hidden dirListBox and step thru it but
> popping back up may be tricky.
> Thanks
> -Ed
>
>
>



Relevant Pages