FINDSTR is quite powerfull and very fast, so a vb equivalent would be nice.
Thanks
Raymond
You can invoke findstr from a VBScript:
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "%comspec% /c findstr ... > temp.txt", 0, True
Then you can use the FSO to read temp.txt for the results.
Other than that you're going to have to read the file(s) in question and use
InStr or a regular expression to find the string(s) you're looking for.
Windows Script Documentation
http://download.microsoft.com/download/winscript56/Install/5.6/W982KMeXP/EN-US/scrdoc56en.exe
--
The teacher is like the candle which lights others in consuming itself.
-Giovanni Ruffini
=-=-=
Steve
-=-=-
"Raymond" <squar...@round.hole> wrote in message
news:3bb8e1d5$0$21071$ba62...@news.skynet.be...
Thanks for the reply
Raymond
"Steve Fulton" <cerbe...@hotmail.com> wrote in message
news:ONvByozSBHA.1960@tkmsftngp03...