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?
Vista search has a fair amount of power, but it seems to be poorly
documented. Is this an understatement? Even two (non-MS) books that I
bought are not helpful...
If indexing is on, Vista searches for contents as well as names. Here's
what I just did: in the search bar, I typed "ext:doc AND smith" (wihtout
the quotes) and I found a list of my doc files that have the word smith in
them.
So, if your bat files are indexed, you could type "ext:bat AND z:". This
should work, unless Vista gets all huffy about z: being a drive name (and
of course the colon is a delimiter in this situation).
....Well, I just tested it. Vista seems not to understand the colon.
Next alternative: download the free search program 'Agent Ransack' and use
it. People here love it. I don't *love* it, but it has helped me a few
times. And it does the job you asked for (I just tested it to make sure).