Advanced search help - Trouble excluding One Drive folder from search

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
MBB520
Posts: 1
Joined: Thu Aug 03, 2023 12:50 am

Advanced search help - Trouble excluding One Drive folder from search

Post by MBB520 »

Hello, I'm hoping somebody can help me figure out what I'm doing wrong. My OneDrive is frustratingly mounted in my filesystem at C:\Users\matth\OneDrive I'm trying to do a search for all video files with extensions .mp4 or .mkv larger than 25mb and not located within that One Drive, more specifically I want to exclude two particular folders in my One Drive from the search. I've tried using the following search but I'm still getting results from the two Folders I want to exclude from the search. Here is the format I'm using...

!C:\Users\matth\OneDrive\1 !C:\Users\matth\OneDrive\2 *.mp4|*.mkv size:>25mb

I've also tried using...

!''C:\Users\matth\OneDrive\1'' !''C:\Users\matth\OneDrive\2'' *.mp4|*.mkv size:>25mb

Can anybody please help me figure out what I'm doing wrong? Thanks in advance...

MBB520
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advanced search help - Trouble excluding One Drive folder from search

Post by void »

What is your Tools -> Options -> Search -> Operator precedence setting?

Does the following search help:

!"C:\Users\matth\OneDrive\1" !"C:\Users\matth\OneDrive\2" <*.mp4|*.mkv> size:>25mb

Notes:
Use double quotes (") to escape any spaces. -maybe there's spaces in your username?
Use < and > for grouping OR terms -only needed if your Tools -> Options -> Search -> Operator precedence is AND > OR



Does including the following help:
!"C:\Users\matth\OneDrive\"

Check without the ! to see if this correctly matches your OneDrive folder:
"C:\Users\matth\OneDrive\"
Post Reply