Page 1 of 1

Solved: How not search in Program Files

Posted: Mon Nov 05, 2018 12:03 pm
by westpoint2
Trying to filter search results for .cpp files

.cpp !C:\Users\Me\Desktop\Windows-classic-samples-master dc:>=5/11/2016

Managed to get rid of fat desktop project
but whatever I do, cant get rid of any paths with "Program Files"-part of path

g:\Program Files...
c:\Program Files (86)..
d:\backup\some Program Files...

HOW TO NOT search fragment of folder name with space inside? If you can please don't use regex.
!"Program Files" not working, and many combinations I tried.

PLEASE HELP!
Thank you.

Re: How not search in Program Files

Posted: Mon Nov 05, 2018 12:23 pm
by westpoint2
Managed to filter out Program Files with !"\program files"

but it has first backslash and I cant filter out - "just in case"
with !"just in case" without using backslashes

J:\Big_8 2018 just in case\..long path after it

SO THE PROBLEM stays actual - How to filter out inside-path combination with SPACE,SPACES in between. AND not using backslashes.

Re: How not search in Program Files

Posted: Mon Nov 05, 2018 2:00 pm
by therube
Try,

!path:"just in case"

Or,

Search (menu) | Match Path

Solved: How not search in Program Files

Posted: Tue Nov 06, 2018 4:49 am
by westpoint2
Thank you therube for quick reply, you were very helpful
and SOLVED my problem, I wouldn't deduct right option by myself.

Great community. Very pleased!

Re: Solved: How not search in Program Files

Posted: Tue Nov 06, 2018 3:57 pm
by NotNull
Adding to @therube's solutions and ignoring:
westpoint2 wrote: Mon Nov 05, 2018 12:23 pm How to filter out inside-path combination with SPACE,SPACES in between. AND not using backslashes.
!"*\*just in case*\*" will exclude all folders with "just in case" somewhere in it's path.
(when Everything sees a "\" it will assume that you want to search the path)