Show special files not being in locations containing special parts of the path?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Show special files not being in locations containing special parts of the path?

Post by Biff »

I want these files to be shown in the result:
*.mkv
*.mp4
*.avi

And I do not want these files above to be shown, if they are in locations with a folder path containing:
\Dokus\
\Konzerte\
\Konzerte (ess)\

How do I do this?
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Show special files not being in locations containing special parts of the path?

Post by therube »

Something along these lines:
ext:mkv;mp4;avi !\Dokus\ !\Konzerte\ !\Konzerte (ess)\


Or if you wanted an expanded set of video file types, simply use video: instead of ext:x;y;z.
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show special files not being in locations containing special parts of the path?

Post by Biff »

Something along these lines:
ext:mkv;mp4;avi !\Dokus\ !\Konzerte\ !\Konzerte (ess)\
OK. This shows nothing, 0 objects. OK, I will try a bit.
Or if you wanted an expanded set of video file types, simply use video: instead of ext:x;y;z.
Ah, yes, that is a good idea!

Thank you very much!
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Show special files not being in locations containing special parts of the path?

Post by NotNull »

Biff wrote: Thu Sep 08, 2022 6:34 pm!\Konzerte (ess)\
... needs to be in quotes as it contains a space character:

Code: Select all

!"\Konzerte (ess)\"
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show special files not being in locations containing special parts of the path?

Post by Biff »

Many thanks!

ext:mkv;mp4;avi !\Dokus\ !\Konzerte\ !"\Konzerte (ess)\"

So a space means "AND"? And a pipe (|) OR?
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Show special files not being in locations containing special parts of the path?

Post by therube »

Space is AND
but that is NOT an OR (|)
That is a NOT (!)
so !knot does not find "knot".
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Show special files not being in locations containing special parts of the path?

Post by NotNull »

Biff wrote: Thu Sep 08, 2022 8:00 pm So a space means "AND"? And a pipe (|) OR?
Correct!

And an exclamation mark (as used here) means NOT. So with 'subtitles':

ext:mkv;mp4;avi !\Dokus\ !\Konzerte\ !"\Konzerte (ess)\"

ext:mkv;mp4;avi Find all files that have a mkv, mp4 or avi extension
!\Dokus\ Limit these results to the ones that do NOT have \Dokus\ in it's path
!\Konzerte\ Limit these results to the ones that do NOT have \Konzerte\ in it's path
!"\Konzerte (ess)\" Limit these results to the ones that do NOT have "\Konzerte (ess)\" in it's path.




On computers, AND gives you less results; OR gives you more results.
For even more confusion, you can read this post
..
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show special files not being in locations containing special parts of the path?

Post by Biff »

!\Dokus\ Limit these results to the ones that do NOT have \Dokus\ in it's path
!\Konzerte\ Limit these results to the ones that do NOT have \Konzerte\ in it's path
!"\Konzerte (ess)\" Limit these results to the ones that do NOT have "\Konzerte (ess)\" in it's path.
So do not show paths containing:
!\Dokus\ AND
!\Konzerte\ AND
!"\Konzerte (ess)\"

My / a thought was this meant the same path must contain everything: Dokus AND Konzerte AND Konzerte (ess). Which would have shown nothing.

What is the difference to this: ext:mkv;mp4;avi !\Dokus\ | !\Konzerte\ | !"\Konzerte (ess)\"? I first thought this was right: Show Dokus OR Konzerts OR Konzerte (ess). So all of them would be shown.
On computers, AND gives you less results; OR gives you more results.
Yes, that's exactly what the two examples above show here. Saw your edition after having written the above. But I assume I somehow do not understand something not yet...but what...?...and thank you for the link.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Show special files not being in locations containing special parts of the path?

Post by NotNull »

Biff wrote: Thu Sep 08, 2022 8:51 pm What is the difference to this: ext:mkv;mp4;avi !\Dokus\ | !\Konzerte\ | !"\Konzerte (ess)\"? I first thought this was right: Show Dokus OR Konzerts OR Konzerte (ess). So all of them would be shown.
That is another way to approach this, indeed:
Gather all folders \Dokus\ , \Konzerte\ , "\Konzerte (ess)\" and exclude them all together using !<....>
In Everything this would look like:

Code: Select all

ext:mkv;mp4;avi    !<\Dokus\ | \Konzerte\ | "\Konzerte (ess)\">
(I know ... confusing .. )
Biff
Posts: 1158
Joined: Mon May 25, 2015 7:09 am

Re: Show special files not being in locations containing special parts of the path?

Post by Biff »

So it exactly does the same. OK.

Yes, confusion. But both ones work. So I can use them - are certainly often used / needed such kinds of searches - as a "template".

Thank you very much!
Post Reply