Hello,
Is it possible to get the search result only for files or folders?
I can't find this option from Everything_SetRequestFlags.
Thanks!
Can we get the search result only for files or folders?
-
kaifuzi
- Posts: 19
- Joined: Thu May 30, 2019 12:53 am
-
void
- Developer
- Posts: 19870
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Can we get the search result only for files or folders?
Include the following in your search:
file:
-or-
folder:
file:
-or-
folder:
-
kaifuzi
- Posts: 19
- Joined: Thu May 30, 2019 12:53 am
Re: Can we get the search result only for files or folders?
Sorry, I can't get your point.
How can I cadd file or folder in code?
Thanks!
How can I cadd file or folder in code?
Thanks!
-
void
- Developer
- Posts: 19870
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Can we get the search result only for files or folders?
To search for files only with the word foo in the filename, search for:
Everything_SetSearch("file:foo");
To search for folders only with the word bar in the filename, search for:
Everything_SetSearch("folder:bar");
Everything_SetSearch("file:foo");
To search for folders only with the word bar in the filename, search for:
Everything_SetSearch("folder:bar");
-
kaifuzi
- Posts: 19
- Joined: Thu May 30, 2019 12:53 am
Re: Can we get the search result only for files or folders?
It works, thanks!