18

Is there a way to search in windows explorer for just folders?

I know folders get sorted to the top, but I'm always looking for that extra option.

Brian Webster
  • 1,123
  • 1
  • 18
  • 38
MathewC
  • 6,877
  • 9
  • 38
  • 53

7 Answers7

14

In the Windows Explorer search pane make sure that More Advanced Options is expanded (not all versions of Windows require you to explicitly expand this).

Find the drop down marked Type Of File (it's normally the first advanced option), and choose Folder.

Your search results will now only include folders.

Edit: If you've got the dog "helping" you search, then you're in the basic search dialog and the above instructions might be wrong. The Type of File option likely exists here (you'll just have to look for it), but you're probably best of switching to "classic" search anyway.

David
  • 1,293
  • 9
  • 10
  • I guess that's for XP? I'm on Vista here. Bog I hate Vista. – MathewC Jun 16 '09 at 16:41
  • I gave you the check since everyone else wanted to use command line. I couldn't check your answer since I don't have XP. Thanks for actually reading the question though. – MathewC Jun 30 '09 at 13:59
  • Unfortunately every version of Windows after 2000 seems to find a new way to gimp the search function in Explorer. It started out with find text in file not really working on all file types and has rapidly gone down hill from there. It would be nice if Windows 7 offered a true Windows 2000 search, even if it had to be manually turned on in an advanced menu or even a registry setting. Your best bet would probably be to Google a tutorial on restoring "classic" search - I believe I've seen some methods for transplanting it from the older explorer.exe, but have never tried it myself. – David Jul 01 '09 at 01:29
  • On Win10, just click inside of the search pane, and the Search ribbon will get activated. You can then click the "Kind" dropdown and select "Folder" – Zimano Mar 06 '20 at 17:17
  • Win10 answer didn't work for me, I selected "PowerShell kind:folder", and it's still showing me files with "Powershell" in the file name, as opposed to only showing me directories containing the string "PowerShell" – Malcolm Anderson Jun 08 '22 at 19:39
12

Some of the items on this page work in Windows 7, even though they are marked as "deprecated". So to search for folders X:

X kind:folder 

You'll notice that when you type kind: into the Windows 7 search box in windws explorer (the one at the right hand side, not the "address bar") you will see a list of the various "kinds"

And say you wanted to search for folders which started with a "." (dotfiles / dotfolders) (like those pesky .svn folders):

kind:folder filename:.svn
Zabba
  • 221
  • 2
  • 4
7

In Windows 7 (might be the same in vista), add the following to the search:

type:"file folder"

eg: searchterm type:"file folder"

Travis Reeder
  • 451
  • 4
  • 5
2

To expand on Eppz's suggestion, to search for a folder called "tem*" (I've included a wildcard just as an example) somewhere on the C: partition use:

dir /s /d c:\\tem*
John Rennie
  • 7,756
  • 1
  • 22
  • 34
0

If you use the command prompt you can always do

dir /d
Eppz
  • 121
  • 2
0

At command prompt just "cd" to your path and then use the command bellow. Beware, this search is case sensitive.

dir /d | find "name"

Paul
  • 714
  • 2
  • 6
  • 19
0

So this works for me on Windows 2012 R2 in the search bar to the right of the address bar in Explorer...

Folder name kind:=folder

Thomas
  • 1