Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Stop libraries search from showing subfolders

02 Oct 2018   #1

Windows 7 Enterprise x64
Stop libraries search from showing subfolders

Hi guys, is there any way to stop library search results from showing subfolders? Whenever I search for a folder name in a library (comprising multiple locations, i.e. multiple folders from multiple drives) not only do I get the folder/folders that I searched for, but also ALL the folders and files that are contained in that folder/folders, which clutters the results to the point of making the whole process useless.

I deselected the "Include subfolders in search results..." option in Folder Options, but this only seems to work for individual folder searches and doesn't seem to affect libraries at all.

Furthermore, after a search in any location, including libraries, there are options at the end of each search under "Search again in" and there is an option "Subfolders". Selecting this option works for searches in individual folders (and includes subfolders if they were not included in Folder Option), but it does absolutely nothing for libraries. Therefore, it would seem that the inclusion of subfolders is enabled in library searches by default and cannot be easily turned off.

Also, when I enabled indexing (just to be able to use libraries) I noticed that there are options to exclude certain files from being indexed. When I excluded all of them, this helped a little, because no files were displayed in a library search, just folders. However, this didn't get rid of the sub-folders, just the sub-files.

Is there any way around this? Perhaps some registry hack to prevent libraries to show subdirectories? Is there any other method of searching multiple locations from one window using built-in Windows tools?

I have a third party programme called UltraFileSearch, which allows me to search just for folder names in pre-specified locations, but I can only search for an folder. I don't have a nice list of folders that are pulled from several locations into one window.

Thanks for your help in advance.

My System SpecsSystem Spec
02 Oct 2018   #2

Windows 7 x64, Vista x64, 8.1 smartphone

Hello an531, and welcome to Seven Forums,

I tend to rely on DIR /w from a command prompt to do what you want to do. But if you'd rather GUI, then perhaps post #8 from this thread Show multiple drives as one folder answers your question,
My System SpecsSystem Spec

 Stop libraries search from showing subfolders

Thread Tools

Similar help and support threads
Thread Forum
Libraries - Subfolders changing paths
Hi friends! I'm experiencing a very strange bug with a custom library. On the odd occasion when I open an explorer pane and navigate to my library on the left-hand side, two of my included folders - which are both located in 'C:\Program Files\...' will change to a non-existent 'C:\Program Files...
General Discussion
How do I get Winows to search for files in subfolders?
I need to search for all mp3 files inside a folder that has other folders in it (sub folders) so I opened the main folder in my computer and typed in *.mp3 in the search box on the top right of the screen then pressed enter but I got nothing! There are a lot of MP3 files in these sub folders but...
Music, Pictures & Video
Windows 7 Libraries not showing up
Hi The Libraries folder exists, but there is nothing in there. No Documents, no music--nothing. Right clicking and choosing "restore default libraries" has no effect--not even an error message. Any ideas? I've seen this topic pop up in many different forums, and the recommended fix...
General Discussion
New subfolders in a network shared folders not showing up
Problem: New sub-folders not showing up! So basically new folders added by uTorrent to my "Download" folder which is shared to everyone on my network don't show up when I access the folder from any computer on the network. (except the one where the files are located) I have to say they do...
Network & Sharing
windows 7 search, libraries not showing up
Hi guys, first post here. I just got windows 7 and am loving it, its like getting a new computer. One aspect I really loved was the speed of the search function. However I must have changed something as when I search now none of the results from the Documents Library are showing up, even...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:27.
Twitter Facebook Google+