Search me

Oct. 22nd, 2010 10:43 am
undyingking: (Default)
[personal profile] undyingking
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 :-)

Date: 2010-10-22 11:06 am (UTC)
From: [identity profile] bateleur.livejournal.com
Serves you right for not using cygwin!

(Whilst obviously I couldn't resist the line, I'm not entirely joking. When I first used WinXP I was horrified that it still didn't have a halfway acceptable shell and basically decided at that point that life was too short to attempt to use Windows tools productively.)

Date: 2010-10-22 03:12 pm (UTC)
From: [identity profile] undyingking.livejournal.com
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.

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

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

Profile

undyingking: (Default)
undyingking

March 2012

S M T W T F S
     123
4 5678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 14th, 2025 12:00 am
Powered by Dreamwidth Studios