How to search only files in a specific folder

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
rando
Posts: 51
Joined: Fri Jul 31, 2009 3:23 pm

How to search only files in a specific folder

Post by rando »

I'm trying to find out the command line parameter to find files in the root of a specific folder, but excluding the files in the subfolders of this folder.

Can anyone please help me?
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: How to search only files in a specific folder

Post by David »

To search for files and folders in C:\windows, but exclude all subfolders, search for:
c:\windows !c:\windows\*\*

As a command line option:
Everything.exe -search "c:\windows !c:\windows\*\*"
rando
Posts: 51
Joined: Fri Jul 31, 2009 3:23 pm

Re: How to search only files in a specific folder

Post by rando »

I use this command line in TC:

-search "%P !%P\*\*"

When I click on the "D:\" directory in TC
this is what opens in Everything:
D:\ !D:\\*\*

However the search is within the subfolders (and subfolder names as well).

ah..... found it :D

I have to cancel the "\" after the second %P.
Now it works
Post Reply