25

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.

Dave M
  • 4,494
MathewC
  • 7,147

8 Answers8

19

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
  • 291
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
7

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

type:"file folder"

eg: searchterm type:"file folder"

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,806
0

If you use the command prompt you can always do

dir /d
Eppz
  • 121
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
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
-1

in file explorer in the top right search box do the following to find node_modules

kind:=folder node_modules
Dawit
  • 99