Page 1 of 1

Quick Search Multiple Directories?

Posted: 23 Oct 2024 20:32
by Lusayalumino
I have a bunch of scripts I've created (and assigned keyboard shortcuts) to do Quick Searches of Directories:
#340 (New Tab) > GOTO > #266 (Quick Search)
E.g.: #340; goto"D:\"; #266

Sometimes, I want to do a search, in all MY files (I don't want to search the entire USER directory as it contains an extra 98,000 files @ 230GB that aren't my files). Not only that, but some directories aren't under the USER directory. So for example, I'd like to create a script (with keyboard shortcut) that would Quick Search search all the following directories:
C:\OneDrive\
C:\Users\USER\Documents\
C:\Users\USER\Downloads\
C:\Users\USER\Music\
C:\Users\USER\Pictures\
C:\Users\USER\Videos\

Does anyone have any suggestions?

Related Threads:
viewtopic.php?t=16829 (using | or "";)
viewtopic.php?t=22606 (using | )
viewtopic.php?t=7798 (Edit > Search Templates)
viewtopic.php?t=7164 (everything.exe)

Re: Quick Search Multiple Directories?

Posted: 23 Oct 2024 20:47
by highend
The quick search entry in the help file has an example for searching two folders and explains the /excl= switch...

Re: Quick Search Multiple Directories?

Posted: 23 Oct 2024 23:18
by Lusayalumino
Thanks highend.

What would the syntax be and how would I delimit? The following didn't work; am I in the right wheelhouse?

#340; goto"C:\Users\admin\"/excl"C:\Users\admin\.cache"/excl"C:\Users\admin\.ccp"; #266;
#340; goto"C:\Users\admin\"|/excl"C:\Users\admin\.cache"|/excl"C:\Users\admin\.ccp"; #266;

Re: Quick Search Multiple Directories?

Posted: 24 Oct 2024 00:12
by highend
E.g. to search in two folders while excluding one subfolders of one of them for the term *.ini

Code: Select all

goto "C:\Tmp_A\|C:\Tmp_B\?*.ini /excl=C:\Tmp_A\Sub1";

Re: Quick Search Multiple Directories?

Posted: 24 Oct 2024 05:30
by Lusayalumino
Man alive is this sweet -- and FAST. I wish I had thought of this years ago -- honestly, it's so fast and smooth (and consolidated) -- I don't think I'll ever search single directories again. Game changer.

Thanks for always sharing your skill and expertise highend... and for providing precise code that didn't require me wasting time fighting with it. :appl: I made another donation.

Re: Quick Search Multiple Directories?

Posted: 24 Oct 2024 07:51
by highend
Thanks :tup: