Quick Search Multiple Directories?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

Quick Search Multiple Directories?

Post 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)
XYPlorer, Great Form -- Awesome Function

highend
Posts: 14243
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Quick Search Multiple Directories?

Post by highend »

The quick search entry in the help file has an example for searching two folders and explains the /excl= switch...
One of my scripts helped you out? Please donate via Paypal

Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

Re: Quick Search Multiple Directories?

Post 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;
XYPlorer, Great Form -- Awesome Function

highend
Posts: 14243
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Quick Search Multiple Directories?

Post 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";
One of my scripts helped you out? Please donate via Paypal

Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

Re: Quick Search Multiple Directories?

Post 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.
XYPlorer, Great Form -- Awesome Function

highend
Posts: 14243
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Quick Search Multiple Directories?

Post by highend »

Thanks :tup:
One of my scripts helped you out? Please donate via Paypal

Post Reply