Page 1 of 1

Can I create a search filter to do this?

Posted: 19 Dec 2019 20:51
by muzicman82
Hello,

I have a folder with a bunch of sub-folders. I would like to search this root folder to show folders that do NOT contain a specific file type in it. How would I enter this?

For example:

ROOT\
ROOT\Folder 1\
ROOT\Folder 1\Somefile.txt
ROOT\Folder 2\
ROOT\Folder 2\Someotherfile.txt
ROOT\Folder 3\
ROOT\Folder 3\Anotherfile.doc

I want a search that returns Folder 3 because I want to search for all folders that do not contain a .txt file.

Ideals?

Re: Can I create a search filter to do this?

Posted: 19 Dec 2019 21:01
by highend
E.g. via quick search:
*.txt /x

/x = Return all folders that don't contain any matching items (reverse of switch /p)

Ofc this will return "ROOT\" as well because it doesn't contain a .txt file as well...

Re: Can I create a search filter to do this?

Posted: 19 Dec 2019 21:08
by muzicman82
Ahh! Super simple... Seems like the Live Filter would be different though?

Re: Can I create a search filter to do this?

Posted: 19 Dec 2019 21:24
by highend
Live filter and quick search aren't the same (different syntax, different possibilities). Afaik this isn't possible via live filter