how do I NOT search subdirectories

Windows 7 Explorer

Using Windows 7, there is no longer all of the help in performing a search from Windows Explorer. One must learn/memorize/search for a syntax guide if one wants to do any advanced searches.

I have not been able to find any documentation that describes how to limit the number of subfolder/subdirectory levels that one can search or even say to just search the current folder.

How do I do that?

Answer
Answer

I have not tested this with natural lanuage search ON, but if you're using the standard Advanced Query Syntax.  The answer is:

 

*.* folder:"\Current_Folder_Name"

 

Where "*.*" is whatever filename search template you need, and "Current_Folder_Name" is obviously not those literal words but the name of the folder the Explorer window has open.

The magic is the leading backslash, which in typical undocumented style tells the AQS parser "just this folder".

 

 

 

19 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Answer
Answer
...and don't forget the quotes around the backslash + folder_name, they are required to limit the search.

3 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

 
 

Question Info


Last updated October 6, 2020 Views 12,255 Applies to: