Page 1 of 1

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

Posted: Sat Mar 02, 2019 7:21 pm
by burgundy
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?

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

Posted: Sat Mar 02, 2019 11:16 pm
by void
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.

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

Posted: Sun Mar 03, 2019 3:32 am
by ovg
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.

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

Posted: Sun Mar 03, 2019 3:39 am
by void
** 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 \.

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

Posted: Sun Mar 03, 2019 7:43 am
by ovg
It is great! Thank you for clarifications!

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

Posted: Sun Mar 03, 2019 10:10 pm
by burgundy
Both suggestions work well. Thank you.