I want to find all files which have labels and extension = .exe. This pattern not work:
Computer?lbl:?* AND "*.exe"
Any suggestion?
Addressbar - Quick search
-
binocular222
- Posts: 1423
- Joined: 04 Nov 2008 05:35
- Location: Win11, Win10, 100% Scaling
Addressbar - Quick search
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Addressbar - Quick search
You have to use boolean operator ":" as you are using AND here, maybe something like this?binocular222 wrote:I want to find all files which have labels and extension = .exe. This pattern not work:
Computer?lbl:?* AND "*.exe"
Any suggestion?
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
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:*
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
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Addressbar - Quick search
Well, boolean search should start with ":", I'll break it for you: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:*
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:*.exeBy the way if you are searching the whole computer, this will also work:
Code: Select all
*?:lbl:* AND name:*.exebtw, 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
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
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
-
admin
- Site Admin
- Posts: 66365
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
XYplorer Beta Club