In Windows XP we can search for files which contains a defined keyword (inside all files types).

Windows 7 can look inside files for a keyword.

Okay, but only for text files. (*.doc, *.txt, *.inf, ...), not (*.conf, *.dat, *.*, ...).

Microsoft search filters don't contain any filter I can use for this.

How is this possible?

link|improve this question

feedback

11 Answers

up vote 28 down vote accepted

If you click on the Advanced button in Indexing Options and go to the File Types tab, you will get a list of file types and the way they are indexed. For the file types you want, you can specify that you want the file contents indexed, and not just the file properties.

Or you can just do a normal search, and after you can just click on the "File Contents" button under the "Search again in" field

link|improve this answer
5  
Or maybe by using the the FIND command instead. – Revolter Oct 25 '09 at 12:10
2  
@Revolter, do you mean the command-line command FIND? That only searches for a string in a single, specified file; it does not list files that contain said string. – Synetech Jan 21 '11 at 22:34
3  
@Synetech inc. - you can pipe the results of another command into find, so there's no reason you couldn't run it on the entirety of the hard drive (maybe using an attrib search) – warren Mar 22 '11 at 13:08
3  
@Synetechinc. You can say: find "word" * – Oscar Mederos May 17 '11 at 7:12
4  
@nikhil: Unfortunately you don't mention how to get to Indexing Options, nor does the page you link to. – Steve Jul 12 '11 at 10:49
show 4 more comments
feedback

I've always gotten better performance when searching inside files by using a GREP tool. I'm a fan of AstroGrep.

link|improve this answer
3  
AstroGrep is lean & mean. 80k, lightning fast, & searches network locations. Thanks for the heads up on this tool. – Sean O Nov 30 '09 at 16:39
+1 for AstroGrep. Nice tool – dkson Dec 21 '10 at 8:54
+1, I use this tool too. – Mas Aug 9 '11 at 11:32
Wow!! this one is good! – Rodniko Apr 22 at 15:19
feedback

I believe you can also just enter "contents:blahblah" in the search filter box in upper right corner of Windows Explorer. This works at least for Text files and Office documents.

link|improve this answer
1  
Doesn't seem to work – ThomasMcLeod May 31 '11 at 4:35
@ThomasMcLeod working to me, maybe you need the "searching in nonindexed files" – Avram Jun 10 '11 at 19:27
For Windows 7 it looks like it's content: not contents: – Jeff Aug 17 '11 at 19:49
1  
I found that it is also localized, in German for example inhalt: – mjustin Oct 13 '11 at 8:36
1  
'contents:$$$' where $$$ is the content i'm looking for works for me in Windows 7 – HaydnWVN Jan 19 at 13:29
show 1 more comment
feedback

In Windows Explorer, menu Tools -> Folder Options:

Press on the search tab and here, the first option: what to search, choose to search for non-indexed files inside the file.

link|improve this answer
feedback

Have you tried search the internet for the correct iFilter (for instance - http://www.ifilter.org/)?

If you have the right iFilter, Windows should be able to search and index its content.

link|improve this answer
do i need an "iFilter" for every file extension ? – Revolter Oct 25 '09 at 3:09
Most likely yes - as each file extension assumes that the file contents would be specific for a particular extension. – rifferte Oct 25 '09 at 3:18
Also - please review these two links - they have lots of content that should help you out: microsoft.com/windows/products/winfamily/desktopsearch/… gallery.live.com/default.aspx?pl=6 – rifferte Oct 25 '09 at 3:20
feedback

Agent Ransack is always worth a look. It's free, fast, good reputation, and doesn't use indexing.

link|improve this answer
I've seen Agent get listed a lot. But have you seen FileSearchEX? Seems a little simpler to use when in a hurry. – pcunite Jun 10 '11 at 0:54
feedback

Windows 7 still has the ability to search for strings inside files everywhere (and not in indexed locations).

In Windows Explorer, go to menu Tools/Folder options and select "Always search file names and contents".

Probably the file types still have to be set up correctly in Advanced Options of Indexing Options".

link|improve this answer
feedback

You can play with findstr.

link|improve this answer
findstr /s /m searchstring *.* – SliverNinja Dec 9 '11 at 20:34
feedback

In Windows XP you could add further (text) file types to be searched via the registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.dita\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

I'm not sure whether this works with Windows 7 as well.

link|improve this answer
feedback

You could try using cygwin and searching *nix commands and search using the grep utility

From Manual:

grep options pattern input_file_names
link|improve this answer
feedback

Windows 7 SP1 ignores content: and contents: for me now, and it looks like the mechanism has changed: Now you type in what you want, and as soon as the search starts, a row at the bottom shows up with "Search again in:" Libraries, Computer, Custom, Firefox, and most importantly, File Contents. Click that and it restarts the search within files, even if the folder is unindexed.

link|improve this answer
feedback

protected by Troggy Dec 17 '10 at 13:46

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.