undyingking: (Default)
undyingking ([personal profile] undyingking) wrote2010-10-22 10:43 am
Entry tags:

Search me

One annoying feature about Windows 7 is that it now only uses (what used to be called) Windows Desktop Search, and has ditched the perfectly fine file search included in XP. (This change may have alredy been made in Vista, I never used that.)

Although in theory more powerful, in practice it has some very irritating features. Boolean logic allows you to combine search terms -- good. But there is no way to escape some of the various operators etc as string literals. So if you want to eg. search for a file whose name includes the string "(1)", it will return all files that match "1", as parentheses are used in the syntax to combine search terms. You can escape the operators which are words by using quotes, eg. ""fish and chips"" will return differently to "fish and chips". But that doesn't work for the punctuational and mathematical symbols.

I spent far too long searching Microsoft's own help, and experimenting with various possible escape characters, before I gave up and Googled for the answer. It turns out that what you need is a search like "name:~"*(1)*"" which does the job perfectly.

(I scarcely need add that neither the tilde nor the asterisk are documented anywhere by MS, afaics.)

(Note: comments along the lines of "serves you right for using Windoze" are probably unnecessary :-)

[identity profile] undyingking.livejournal.com 2010-10-22 03:12 pm (UTC)(link)
Mm, I used to use Cygwin quite a lot at one time -- in the days of Windows 98 I guess. Since then I have become soft and decadent, and hardly ever resort even to Window's own feeble shell (or pseudo-shell).

There is Windows PowerShell which is supposed to make it a lot more capable, but I've never tried that.

[identity profile] bateleur.livejournal.com 2010-10-22 03:33 pm (UTC)(link)
Powershell looks like a programming language! I assume nobody would ever really type "Get-ChildItem" for "ls". :-/

[identity profile] undyingking.livejournal.com 2010-10-22 04:26 pm (UTC)(link)
I shall ask [livejournal.com profile] fractalgeek if he does :-)