Re: How can I search for files?
From: Ed Landau (aunst8_2000_at_yahoo.com)
Date: 09/04/04
- Next message: Dene: "Re: DataGrid not showing programmatic changes"
- Previous message: Ralph: "Re: Compact an Access database with VB"
- In reply to: Patty O'Dors: "RE: How can I search for files?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 04 Sep 2004 22:22:53 GMT
Hi Patty: Somehow when I try to execute the Shell command, the arguments
don't seem to matter... I just get a command window appear but nothing gets
executed in it.
Any clues?
Thanks
-Ed
"Patty O'Dors" <PattyODors@discussions.microsoft.com> wrote in message
news:B6E23478-441A-41D4-8F4E-33A347630CC7@microsoft.com...
> 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
> >
> >
> >
- Next message: Dene: "Re: DataGrid not showing programmatic changes"
- Previous message: Ralph: "Re: Compact an Access database with VB"
- In reply to: Patty O'Dors: "RE: How can I search for files?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|