Windows XP Search isn’t quite as good as it first appears to be. Oh sure, it’ll find stuff in files… sometimes. After almost banging my head on the table wondering why it couldn’t find some file content I knew to be there, I initially wrote it off, guessing that it had problems with the Unix-style LFs I’d given it.
But no… a little more fiddling and I discovered that it ignores file types that aren’t registered in Windows. It doesn’t seem to say this on the search options anywhere, but I proved it by creating two identical files, one called textfile.txt and the other called textfile.randomextension. Searching for content I knew to be in both, it consistently would only find textfile.txt
Is this sensible? Is this right? Well okay, I can understand that you’d write a search tool that didn’t want to search particular types of files, for speed purposes. But why stop the user switching it to search everything? And why hide this fact so well? I can find no mention of it in the help or on the screens. Sure, you can search with an animated screen character (Clippy lives… almost), but how about looking in all files, and I mean ALL files?
Eventually I found a KB article that shows how to dodge around it:
309173: Using the “A word or phrase in the file” search criterion may not work. This lets you switch on searching for specified extensions, or to tell the Index Service to index absolutely everything, which I assume would burn up lots of disk space. There seems to be no way of searching everything on-the-fly without using Index Service.
Registering your weirdo extension as a text file doesn’t work. Renaming your file does. If there’s lots of them, you can always go to DOS and: ren *.randomextension *.txt
then back again when you’re finished. (Windows XP Command Line Reference.)
And of course, there’s always DOS’s FIND "phrase" *.* >resultsfile.txt
Of course you could always try Copernic Desktop Search – it’s a wonderful product, and free. Please excuse the lack of a URL but I’m on 33.3 dial up line, Win 95 machine and the agony of looking up a site is just too much.
In this particular case I was looking for instant gratification on a PC which was not my own! Thus I ended up with DOS. But yeah, it would seem a third-party tool may be the way to go.
Charles Jones emailed to say a solution is given here: http://www.jsiinc.com/SUBM/tip6200/rh6222.htm
(In summary, in the key
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/ContentIndex change FilterFilesWithUnknownExtensions 1, then reboot.)
Thanks Charles!
Re: Method 2 in the KB article above, it works without having to turn on the Indexing service. (Thanks Kevin)
Hmm, I didn’t have this issue and I’ve only just reinstalled XP (what a nightmare with all those fixes and SP2, and SP3 soon… Nearly as annoying as having to upgrade to Kubuntu 8.10 from 7.04, via 7.10, but anyway). It might be due to the fact that I always enable “Show hidden files” and uncheck “Hide file extensions for unknown file types” on a fresh install, and apply it to all folders. Whatever it is, the registry key for it is said to false, and it found the test file that I made on the desktop without problems (random.random), when I clicked the humorous “advanced options”.
Incidentally, how can I stop Windows from panicking every time I want to change a bloody file extension?