Page 1 of 1

Addressbar - Quick search

Posted: 02 Jun 2013 18:37
by binocular222
I want to find all files which have labels and extension = .exe. This pattern not work:
Computer?lbl:?* AND "*.exe"
Any suggestion?

Re: Addressbar - Quick search

Posted: 02 Jun 2013 19:56
by serendipity
binocular222 wrote:I want to find all files which have labels and extension = .exe. This pattern not work:
Computer?lbl:?* AND "*.exe"
Any suggestion?
You have to use boolean operator ":" as you are using AND here, maybe something like this?

Code: Select all

Computer?:*.exe AND lbl:*

Re: Addressbar - Quick search

Posted: 03 Jun 2013 03:42
by binocular222
Thanks, this works.
Just a little strange that swapping two side of AND does not work:
Not Work: Computer?lbl:* AND :*.exe
Work: Computer?:*.exe AND lbl:*

Re: Addressbar - Quick search

Posted: 03 Jun 2013 05:16
by serendipity
binocular222 wrote:Thanks, this works.
Just a little strange that swapping two side of AND does not work:
Not Work: Computer?lbl:* AND :*.exe
Work: Computer?:*.exe AND lbl:*
Well, boolean search should start with ":", I'll break it for you:
Computer is the location
? means to trigger a search
: means trigger a boolean search
*.exe means to search all exe files
AND is the boolean operator
lbl: means to search labels
* means search all labels

So in the example that did not work boolean is triggered after AND so obviously it won't work.
Also, XY does not know what *.exe is if you put it second. So just like how you put lbl: to identify label, you have to explicitly put name: to identify that its a name, like this:

Code: Select all

Computer?:lbl:* AND name:*.exe

By the way if you are searching the whole computer, this will also work:

Code: Select all

*?:lbl:* AND name:*.exe
The first * means all drives

btw, in the help file "find files" section has all of this. Paste this in address bar:
::help "idh_find.htm#idh_findtabname";

Re: Addressbar - Quick search

Posted: 18 Jun 2013 10:17
by binocular222
and how to search for file with extension exe or lnk or no extension?

Re: Addressbar - Quick search

Posted: 18 Jun 2013 11:34
by admin

Code: Select all

?:*.exe | *.lnk | !.