On Mar 24, 1:15*pm, "David" <n...@email.com> wrote:
> In windows XP's search options you could use the option to find a phrase
> within a set of files.
> I want to search all .bat files for the phrase "Z:"
> How do I do this in vista?
When Vista files are NOT indexed, use the following in biterscripting
(
http://www.biterscripting.com/install.html for free download) .
script SS_FindStr.txt files("*.bat") dir("C:/Program Files") str("Z:")
Will list all .bat files showing line numbers and line text containing
the string "Z:" .
To search by REGULAR EXPRESION instead of string, use the following.
script SS_FindRE.txt files("*.bat") dir("C:/Program Files") str
(<reg_expr>)
Avoid searching directly into C:/ - it will be slow - operating system
"holds" some of the files.
These scripts work in all Windows versions, and irrespective of
whether files are indexed or not.
Take care.
Richard