Exclude list of folders or..

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
hairypaulsack
Posts: 11
Joined: Wed Jun 10, 2015 11:37 pm

Exclude list of folders or..

Post by hairypaulsack »

I am looking for a python script that I wrote my among 600k that exist on my computer. I want to exclude all directories from the search that have a python.exe anywhere in the path. I have a list of directories extrapolated from previous everything search in form of .efu or .txt

I was unable to find a way to exclude a list of folders or many folders other than '!path1\ !path2\' etc

I can go into sublime and manipulate the list to format it to one string to fit the query syntax, but there are so many it isn't very forgiving.

Feels like this should be a thing or I'm just missing something.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Exclude list of folders or..

Post by therube »

If I'm understanding...

Load the .efu
Set Match Path
Set your search to: !python.exe
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Exclude list of folders or..

Post by void »

You'll be able to do this with the next major version of Everything with something like:
path:regex:(.*)\\[^\\]*$ !fileexists:\1\\python.exe

For now, you'll need to make a long !path1\ !path2\ list, I found the quickest way to do this:
  • In Everything, type in the following search:
    child:python.exe
  • From the Edit menu, click Select All.
  • From the Edit menu, under the Advanced submenu, click Advanced Copy to folder....
  • In the Copy To dialog, make sure Match case and Regex are unchecked.
  • Change the old format to:
    %1
  • Change the new format to:
    !"%1\"
  • Copy all the New full paths and filenames to the clipboard.
  • Click CANCEL
  • Paste the list into the Everything search box.
Note: Everything will not display more 4000 characters in the Search box, it will still work correctly, the text will just not be visible.
Post Reply