Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Vista - Search files by content

Reply
 
Old 09-24-2007   #1 (permalink)
Paddy


 
 

Search files by content

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?

My System SpecsSystem Spec
Old 09-24-2007   #2 (permalink)
Dave Wood [MS]


 
 

Re: Search files by content

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.

"Paddy" <Paddy@xxxxxx> wrote in message
news:63CC3BA4-5AB0-467D-A259-3286C6033121@xxxxxx
Quote:

>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?
My System SpecsSystem Spec
Old 09-24-2007   #3 (permalink)
Paddy


 
 

Re: Search files by content

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?
My System SpecsSystem Spec
Old 09-24-2007   #4 (permalink)
Dave Wood [MS]


 
 

Re: Search files by content

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.

"Paddy" <Paddy@xxxxxx> wrote in message
news:30BBC046-0383-46BB-90F8-E1B67C3B9577@xxxxxx
Quote:

> 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?
My System SpecsSystem Spec
Old 09-25-2007   #5 (permalink)
Paddy


 
 

Re: Search files by content

Thank you, Dave. That works, but it also returns some extra files. I don't
know for what reason.
My System SpecsSystem Spec
Old 09-25-2007   #6 (permalink)
Dave Wood [MS]


 
 

Re: Search files by content

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

"Paddy" <Paddy@xxxxxx> wrote in message
news:3815242B-A1AE-4C08-AFB2-8841EF6347FB@xxxxxx
Quote:

> Thank you, Dave. That works, but it also returns some extra files. I don't
> know for what reason.
My System SpecsSystem Spec
Old 09-25-2007   #7 (permalink)
Paddy


 
 

Re: Search files by content

Cool, that works!

Thanks a ton for your help.
My System SpecsSystem Spec
Old 11-07-2007   #8 (permalink)
Teri


 
 

Re: Search files by content

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.


"Dave Wood [MS]" wrote:
Quote:

> 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.
>
> "Paddy" <Paddy@xxxxxx> wrote in message
> news:63CC3BA4-5AB0-467D-A259-3286C6033121@xxxxxx
Quote:

> >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?
>
>
My System SpecsSystem Spec
Old 12-27-2007   #9 (permalink)
David in Central VA


 
 

Re: Search files by content

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!

"Dave Wood [MS]" wrote:
Quote:

> Do the extra files contain "xyz" in the filename? Technically you can do
> ext:xyz to really only match on the file extension.
>
> "Paddy" <Paddy@xxxxxx> wrote in message
> news:3815242B-A1AE-4C08-AFB2-8841EF6347FB@xxxxxx
Quote:

> > Thank you, Dave. That works, but it also returns some extra files. I don't
> > know for what reason.
>
>
My System SpecsSystem Spec
Old 04-04-2008   #10 (permalink)
thuse


 
 

Re: Search files by content

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


"Teri" wrote:
Quote:

> 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.
>
>
> "Dave Wood [MS]" wrote:
>
Quote:

> > 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.
> >
> > "Paddy" <Paddy@xxxxxx> wrote in message
> > news:63CC3BA4-5AB0-467D-A259-3286C6033121@xxxxxx
Quote:

> > >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?
> >
> >
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Windows Search 4 - Wildcard in file content Vista file management
Vista File Content Search of Network Drives Vista file management
How to search for content inside files? Vista General
Search in content for ASP files brings nothing Vista General
Weirdness with get-content | replace | set-content - file content is deleted!! PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46