Home > Archive > Visual Basic > December 2005 > Re: Search for a word in files within a directory (VB6)
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Search for a word in files within a directory (VB6)
|
|
| AmytDev 2005-12-16, 9:55 pm |
| 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?co...al_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@discussions.microsoft.com> wrote in message
> news:F8049AE1-C72A-4695-BFB5-0D8C3C5201F1@microsoft.com...
>
>
>
| |
|
| 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@discussions.microsoft.com> wrote in message
news:5AD96EDE-501C-4FAF-87A2-B15164CE7A72@microsoft.com...[color=darkred]
> 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:
>
|
|
|
|
|