To temporarily exclude folder

Discussion related to "Everything" 1.5 Alpha.
Post Reply
vuslx
Posts: 22
Joined: Tue Mar 08, 2022 6:50 am

To temporarily exclude folder

Post by vuslx »

void wrote: Tue Nov 14, 2017 11:07 am To temporarily exclude this appdata folder from a search, include the following in your search:
!c:\users\*\appdata\*
this code works fine 1.4. but it fails with 1.5a.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: To temporarily exclude folder

Post by void »

Please try the following search:

!c:\users\*\appdata\**

In Everything 1.5:

? = match a single character.
* = match any character (except \) any number of times.
** = match any character any number of times.

wildcards
wildcards_star_all
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: To temporarily exclude folder

Post by ChrisGreaves »

vuslx wrote: Sat Mar 11, 2023 11:20 am
void wrote: Tue Nov 14, 2017 11:07 am To temporarily exclude this appdata folder from a search, include the following in your search:
!c:\users\*\appdata\*
this code works fine 1.4. but it fails with 1.5a.
@Void.
If I have understood the search string correctly, the example given in Vusix's post fails for me in 1.5a
Untitled.png
Untitled.png (85.82 KiB) Viewed 1075 times
I do not have 1.4 installed.
The example "!c:\users\*\appdata\**" given in your response to Vusix appears to work for me in 1.5a

I have no investment in this; I greedily try every search expression that uses a feature that I haven't tried before..
I hope this makes sense. :D
Cheers, Chris
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: To temporarily exclude folder

Post by NotNull »

Do you have Match Case enabled under the Search menu-entry? (or check the statusbar)
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: To temporarily exclude folder

Post by ChrisGreaves »

NotNull wrote: Sat Mar 11, 2023 5:21 pm Do you have Match Case enabled under the Search menu-entry? (or check the statusbar)
Untitled.png
Untitled.png (93.2 KiB) Viewed 1064 times
ME? No.

Code: Select all

!c:\users\*\appdata\*
Am I parsing this correctly, that is, as Everything 1.5a would see it?
(1) There are no spaces in the search box, so this is a single search term; no petulant ANDs lurking there?
(2) The leading symbol is that for the NOT operator.
(3) We are looking for Objects that sit on drive C:
(4) Specifically three folders or more below the root folder
(5) Of which the first folder must match users and the third must match appdata
(6) And by item (2) above NOT that.

Loosely "anything except the appdata folder of the user who is currently logged in"
Or: "anywhere except my appdata"

There again, perhaps you were responding to Vusix's post?
Cheers, Chris
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: To temporarily exclude folder

Post by NotNull »

ChrisGreaves wrote: Sat Mar 11, 2023 8:01 pm There again, perhaps you were responding to Vusix's post?
I was responding to you (=ChrisGreaves) as I was puzzled by the results you got.
So my first guess was wrong.

I get a different outcome. Here all appdata folders from every user are no longer shown.
To reduce the number of results, I used:

Code: Select all

!c:\users\*\appdata\**   c:\users
No better ideas at this moment, other than looking at the debug log, but that's @voids department
(look for the green entries; those contain the expanded search queries)
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: To temporarily exclude folder

Post by NotNull »

Man, I'm stupid!!

There is an extra * missing:

!c:\users\*\appdata\**

instead of:
!c:\users\*\appdata\*

you could also use
!c:\users\*\appdata\
Post Reply