Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burgundy
Posts: 83
Joined: Fri Oct 16, 2009 9:50 am

Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by burgundy » Sat Mar 02, 2019 7:21 pm

Can anyone please help construct a suitable Everything query.

I have many files with "KV" in their name and most are correctly filed in directories - which also have "KV" in their directory name.

How do I find those files containing "KV" which are not in directories with "KV"in their name?

void
Site Admin
Posts: 4668
Joined: Fri Oct 16, 2009 11:31 pm

Re: Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by void » Sat Mar 02, 2019 11:16 pm

Please try searching for:
!**kv**\* kv

! = NOT
** = match any character
the \ will enable full path matching for this term
**kv**\* basically means match if kv is anywhere in the path part of the full path and filename.

ovg
Posts: 164
Joined: Thu Oct 27, 2016 7:19 pm

Re: Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by ovg » Sun Mar 03, 2019 3:32 am

Hi David!
void wrote:
Sat Mar 02, 2019 11:16 pm
** = match any character
Why not use simple * ?
for me

Code: Select all

files: !*kv*\* kv
working fine.

void
Site Admin
Posts: 4668
Joined: Fri Oct 16, 2009 11:31 pm

Re: Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by void » Sun Mar 03, 2019 3:39 am

** and * are the same in Everything 1.4

In future versions of Everything, ** will match any character and * will match any character except \
This of course will be optional from Options -> Search -> Allow * to match \.

ovg
Posts: 164
Joined: Thu Oct 27, 2016 7:19 pm

Re: Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by ovg » Sun Mar 03, 2019 7:43 am

It is great! Thank you for clarifications!

burgundy
Posts: 83
Joined: Fri Oct 16, 2009 9:50 am

Re: Want to find files containing "KV" in their name which are not already in directories with "KV" in their name

Post by burgundy » Sun Mar 03, 2019 10:10 pm

Both suggestions work well. Thank you.

Post Reply