Best way to *confidently* search files and contents in Windows without using an indexing service?

33

33

Back in Windows XP I knew that doing a file search and checking "Search file contents" (or whatever it was) I would get my results if I waited patiently.

In Vista, I felt I had absolutely no confidence that what I had typed had been thoroughly searched for, even with all the "Search non-indexed locations" etc. checked.

In Windows 7 I feel better and usually find stuff, but am suspicious when I don't. I'm not left feeling "confident".

I don't want (the weight of) Google Desktop.

I want a solid, brute file search utility. I found one I thought looked good recently (installed Windows 7 RTM last week and can't remember what it was called) but it still didn't seem to find files I placed as tests.

Josh Comley

Posted 2009-08-20T17:14:23.987

Reputation: 3 582

Question was closed 2015-08-22T21:49:04.833

1Windows 7 search needs some getting used to. I find if you surround your search query word in wildcard * (e.g. when looking for a file that has the word me in it), NEVER just search for me, rather search for *me*. – bobobobo – 2010-06-12T16:58:36.143

1

Another one worth mentioning is File Content Finder on the App Store (disclaimer: I'm the developer). It's a new tool (2019), and thus it hasn't been mentioned in the answers below. Doesn't require indexing.

– Geo Systems – 2019-04-16T11:37:21.250

You can make Windows 7 search file contents more thoroughly with the tips in wikiHow: How to Make Windows 7 Search File Contents. It tells you how to enable file content search by default, and enable file content search for individual file types for which it is turned off by default.

– Rory O'Kane – 2013-06-03T16:25:14.033

Answers

39

Agent Ransack is excellent -- it's fast, lightweight (single <1 MB application), powerful (regular expression matching of file names and content), and you can trust the results.

enter image description here

arathorn

Posted 2009-08-20T17:14:23.987

Reputation: 8 559

3This is a very good program for precisely the reason that its behavior is so clearly defined.. vs Windows 7 search now, you really have no idea what its going to do. – bobobobo – 2010-06-12T17:02:01.143

1Aaahh I remember this from a good couple of years back finding it! Super, perfect for my needs. Plus it supports Regular Expressions. Super! – Josh Comley – 2009-08-20T17:38:40.740

3I LOVE Agent Ransack - it's a solid piece of software. I find the Windows 7 search results baffling. – Shane – 2011-09-13T18:31:14.293

25

You also have a perfectly good copy of PowerShell sitting there on your Windows 7 install:

Get-ChildItem C:\* -Recurse | Select-String 'foo'

You could even add an alias to your profile for Select-String called grep and then do:

ls C:\* -r | grep 'foo'

EBGreen

Posted 2009-08-20T17:14:23.987

Reputation: 7 834

1This gave me an out-of-memory error. I tried piping the output of %userprofile%\Appdata\ – jiggunjer – 2015-06-23T11:48:29.367

@jiggunjer - What command did you specifically run that gave the OOM? – EBGreen – 2015-06-29T14:11:12.537

2+1 for pointing out Powershell in W7 and applying it to this. – Josh Comley – 2009-08-20T17:42:44.397

Powershell Por Vida! – MDT Guy – 2014-01-10T21:06:25.240

18

I always use the find-in-files feature of Notepad++ for my brute-force searches.

MiffTheFox

Posted 2009-08-20T17:14:23.987

Reputation: 3 032

Genius. Simple and effective. It's one of the few programs I have access to behind a corporate megafirewall. – Iain Holder – 2014-11-13T15:00:33.430

Can you handle files like docx? – smwikipedia – 2016-07-09T04:39:16.917

1Thumbs up !! for npp :) – InfantPro'Aravind' – 2012-01-12T14:53:18.337

5

Try using grep from GnuWin32. GnuWin32 has Windows implementations for most of the common Unix command-line facilities.

Kristo

Posted 2009-08-20T17:14:23.987

Reputation: 614

5

There is a pretty brute-force way using findstr:

findstr /s "some search string" *

You can even use regular expressions with the /r switch.

Joey

Posted 2009-08-20T17:14:23.987

Reputation: 36 381

4

Try using Everything, which aims to provide instant search across all Windows systems.

enter image description here

user7202

Posted 2009-08-20T17:14:23.987

Reputation:

1This has since changed. From the same question in the FAQ: "Yes, Everything can search file content with the content: search function. File content is not indexed, searching content is slow." – Hashim – 2017-08-01T17:47:47.203

7From the FAQ: 1.3 Does Everything search file contents? No, "Everything" does not search file contents, only file and folder names. – Rory O'Kane – 2013-06-03T16:19:22.553

4

Not many people are aware of Total Commander's advanced file search capabilities. This search can find files using wildcards, search for text within the files, read into most archives, search by file attributes and so on.

Yuval

Posted 2009-08-20T17:14:23.987

Reputation: 2 022

3

You should have a look at Wikipedia's list, List of search engines, Desktop search engines. Ultimately, you're asking for our opinions, but if ours doesn't match up with yours, then you won't use the program. I would try a few on that list and see if you like them.

One popular engine is Agent Ransack (personal favourite) or Copernic Desktop Search (it has free and paid versions, and is Windows only).

Breakthrough

Posted 2009-08-20T17:14:23.987

Reputation: 32 927

3

I use cygwin. Here's what works for me:

cd /cygdrive/c
find . -type f -print0 | xargs -0 grep "search string here"

Chris W. Rea

Posted 2009-08-20T17:14:23.987

Reputation: 10 282

3

While I'm a great fan of Total Commander, the speed of Everything is just unrivaled.

If you're looking for a content search tool without risking your privacy, have a look at DocSearch, a small yet very efficient Java utility.

Molly7244

Posted 2009-08-20T17:14:23.987

Reputation:

4Everything doesn't search file contents. – arathorn – 2009-08-21T12:14:33.613

hence my reference to DocSearch :) – None – 2009-08-21T22:47:37.883

1

Unix grep implementation for Windows by the famous Tortoise svn developers:

grepWin

Shell integration, comprehensive GUI, and free.

9dan

Posted 2009-08-20T17:14:23.987

Reputation: 323

0

FileSeek is pretty sweet too. Allows for more things than you can do with free version of Agent Ransack and is very fast.

Mrchief

Posted 2009-08-20T17:14:23.987

Reputation: 452

-1

There is a free tool to tag your files by author, item, time etc. It provides a web form to search by tags and content calling automatically Vista search function (see link text and its help section)

Andrea

Posted 2009-08-20T17:14:23.987

Reputation: