For example, I want to exclude both *.lnk and *.tmp files from the index.
I can do it for one or the other but can't figure out the syntax in the Exclude files box of Exclude options in order to exclude both.
Syntax to exclude multiple file names
Re: Syntax to exclude multiple file names
Try it with:
See https://www.voidtools.com/support/everything/searching for details
Code: Select all
!ext:lnk;tmp
Re: Syntax to exclude multiple file names
Edit: Sorry, I missed that the request was for the Options > Exclude preferences dialog.
The other way is
!*.lnk !*.tmp (edited)
and
!<*.lnk|*.tmp>
use <> for grouping, | for OR, and ! for NOT.
The other way is
!*.lnk !*.tmp (edited)
and
!<*.lnk|*.tmp>
use <> for grouping, | for OR, and ! for NOT.
Last edited by raccoon on Tue Dec 22, 2020 4:07 am, edited 2 times in total.
Re: Syntax to exclude multiple file names
That would give you all files ..
I missed that too! Will check if answer is still correct ...Sorry, I missed that the request was for the Options > Exclude preferences dialog.
EDIT: Answer should be:
Code: Select all
*.lnk;*.tmp
Re: Syntax to exclude multiple file names
Edited my above flub.
Ooh, I didn't even notice the hover tooltip. I did use this dialog once before and had to look it up in the help file. Which is still frightfully inconsistent with how Filters, Bookmarks and searches behave. Was there some point where semicolon could be used as a naked OR (|) symbol without any func: prefix?
Ooh, I didn't even notice the hover tooltip. I did use this dialog once before and had to look it up in the help file. Which is still frightfully inconsistent with how Filters, Bookmarks and searches behave. Was there some point where semicolon could be used as a naked OR (|) symbol without any func: prefix?
Seeing as regex: works, I'd estimate that ext: probably also works, or doesn't.Help File wrote:To include only certain types of files in the "Everything" index:
In "Everything", from the Tools menu, click Options.
Click the Exclude tab
Type in the semicolon delimited list of wildcard filters for include only files, for example, include only mp3 and jpg files:
*.mp3;*.jpg
Click OK.
To exclude certain types of files from the "Everything" index:
In "Everything", from the Tools menu, click Options.
Click the Exclude tab
Type in the semicolon delimited list of wildcard filters for exclude files, for example, exclude thumbs.db, desktop.ini and tmp files:
thumbs.db;desktop.ini;*.tmp
Click OK.
To use regex in your exclude filters, prefix the exclude filter with regex:, for example, to exclude folders starting with A-N, set the exclude filter to:
regex:^[A-N]
Re: Syntax to exclude multiple file names
Well now. After I posted this I noticed a tool tip box that pops up to inform the user that a semicolon is the delimiter.
This is now working for me:
*.lnk;*.tmp
Now I don't see the "junk" files that Windows and Office create when you open a file.
Thanks to all for your help.
This is now working for me:
*.lnk;*.tmp
Now I don't see the "junk" files that Windows and Office create when you open a file.
Thanks to all for your help.