Search files by content

G

Guest

I have a directory with a large number of subdirectories and files.

I wish to find all files that contain a certain search phrase (i.e. the
search phrase is not in the file name, but in the contents of the file). Most
of the files are plain ASCII text with assorted extensions.

In Windows XP, this was easy and quick; there was a place in the search
options to search on the contents.

In Vista (not as easy - why does Microsoft "fix" things that already work?),
the search finds some of the files with the search phrase, but not all of
them.

Why would Vista ignore some of the files?
 
D

Dave Wood [MS]

Vista Search will search the contents of all files which it knows what kind
of data is in the file. Just typing in the search box will do this. But if
the file has an unknown extension the contents are not searched {similarly
to in XP}. In the Indexing Control Panel you can control the search behavior
for each file type.
 
G

Guest

Thank you, Dave.

Your comments have allowed me to solve the problem.

Question: Is there a way to ask Vista to search only specific files, e.g.
*.xyz, for the content?
 
D

Dave Wood [MS]

The way I do it is by typing name:*.xyz into the search box as well as my
query words. You can also do something similar in the Advanced Search Pane.
 
G

Guest

Thank you, Dave. That works, but it also returns some extra files. I don't
know for what reason.
 
D

Dave Wood [MS]

Do the extra files contain "xyz" in the filename? Technically you can do
ext:xyz to really only match on the file extension.
 
G

Guest

I am having same problem with file type excel files from XP. (.xls)

there are other postings with same issue - "searching based on content" ,
"file search can't find files with specified word" , "Vista Search
functionality" (this one recommends using "quotes" or putting all into
indexing - not really good solution for me), "searching for words within
documents" (this one recommends a shareware program to download that does the
trick - why should we have to do that?? Vista should do it native) , "Search
files by content".

These postings date back to September 2007 - seems this problem has been
around and isn't going away. Maybe Vista should issue patch?

Is there some trick we are all missing???????????

Thanks for all your help.
 
D

David in Central VA

Dave, Where can I find the full list of parameters/syntax for Vista seach
functions?
You've offered name: ext:
I'd like to get educated.
(Why MS has decided not to put a "?" with a syntax help popup I'll never
know. And if it's in technet it must not be very well indexed - that would be
ironic.)

Thanks!
 
T

thuse

I've found my way to the "index control panel", I think it was called in an
earlier post, by start/control panel/indexing options. When I go to the
"advanced" tab, then "file types", there is a list of extensions that are
allowed. There is also an icon on the bottom with the title "add new
extension", but it is "dimmed out", or whatever the correct term is for this
condition. That is, it is in dim hues, and does not respond to mouse picks.

I'd like to add the extension .dat to the list. How do I do so?
Thuse in LA
 
O

On Request

There is a box to the left of the 'Add new extension' box. If you type your
extension in that box, the 'Add new extension' box will become visible.
 
T

thuse

Thanks, Teri, don't know why I didn't figure that out. The control panel
took the addition, but it doesn't seem to have taken hold yet in W Explororer
search yet. I'll try rebooting, get back to you if that doesn't work.
 
T

thuse

Thanks, On Request.

Restarting didn’t work. I tried reindexing everything, which took several
hours. I still couldn’t find content in .dat files, even though that
extension appears in my updated index control panel.

Out of desperation, I used the dos “find†feature. It was slow, but did do
the job I needed.

My present conclusion is that Microsoft does not take the search for content
market seriously. It is so difficult to set up this tool on Window Vista,
and then it still doesn’t work, that anyone who has a serious need for such a
function better look for someone else’s program to do this work. Does anyone
know any such product that they can recommend?
‘Thuse
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top