Re: Search for a word in files within a directory (VB6)
- From: "Veign" <NOSPAMinveign@xxxxxxxxx>
- Date: Fri, 16 Dec 2005 21:30:35 -0500
Yes. See my other post.
--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--
"AmytDev" <AmytDev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5AD96EDE-501C-4FAF-87A2-B15164CE7A72@xxxxxxxxxxxxxxxx
> In the c:\computer inventory directory there are files these files for
> example:
> 1. teststand.html
> 2. teststand2.html
> 3. teststand3.html
>
> Within each of the files there is a line for processor type (Processor
> Type:
> Intel Pentium 4 (0.13 µm) 2,667 MHz, for example). What I am trying to do
> is
> search for all the files that have Intel Pentium 3 and write the filename
> and
> processor type line to a text file. Any suggestions?
>
> "Veign" wrote:
>
>> What part are you having the issues with?
>>
>> Search for files:
>> http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles_minimal_multiple.htm
>>
>> Looking inside of files:
>> http://www.veign.com/vrc_codeview.asp?type=app&id=72
>>
>> --
>> Chris Hanscom - Microsoft MVP (VB)
>> Veign's Resource Center
>> http://www.veign.com/vrc_main.asp
>> Veign's Blog
>> http://www.veign.com/blog
>> --
>>
>>
>> "AmytDev" <AmytDev@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:F8049AE1-C72A-4695-BFB5-0D8C3C5201F1@xxxxxxxxxxxxxxxx
>> > HI. I have a directory of files that I would like to search through for
>> > a
>> > specific line. I would then like to write that line and the filename to
>> > a
>> > text file. I just don't know how to do this. I'm still learning how to
>> > use
>> > VB
>> > 6.0 and would appreciate any help that you could give.
>> >
>> > Thanks.
>> > Amyt
>>
>>
>>
.
- References:
- Re: Search within files in a directory (VB6)
- From: Veign
- Re: Search within files in a directory (VB6)
- Prev by Date: Re: Reports / Preview / Printing
- Next by Date: Re: Booking System
- Previous by thread: Re: Search within files in a directory (VB6)
- Next by thread: Booking System
- Index(es):
Relevant Pages
|