Addressbar - Quick search

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Addressbar - Quick search

Post by binocular222 »

I want to find all files which have labels and extension = .exe. This pattern not work:
Computer?lbl:?* AND "*.exe"
Any suggestion?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Addressbar - Quick search

Post 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:*

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Addressbar - Quick search

Post 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:*
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Addressbar - Quick search

Post 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";

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Addressbar - Quick search

Post by binocular222 »

and how to search for file with extension exe or lnk or no extension?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Addressbar - Quick search

Post by admin »

Code: Select all

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

Post Reply