How to search for files only (excluding directories) in Windows 8

1

How do I search for files only?

I need to display all the files *.* but without directories and subdirectories.

Of course I can just type *.* and sort it in a desired way, so it will display all data I need, but there are thousands of directories and it take "ages" to sort.

So how do I do this?

David

Posted 2015-07-13T07:38:46.220

Reputation: 113

Answers

2

You can use the System.Kind: advanced tag and to search for files only add the negation flag <> (which means not equal).

In the Windows Search bar, enter: *.* System.Kind:<>folder and this will exclude the results that are of the folder type from the search.

If you're on the command line: dir *.* /a-d will exclude directories in your search results.

These will still search recursively if specified (as is the default with Windows Search but you must specify the /s flag on the command line) but the results will not show any directories or sub-directories matching your search criteria.

Hope that can help.

txtechhelp

Posted 2015-07-13T07:38:46.220

Reputation: 3 317

1Thank you. This works perfect. Just wonder why Microsoft hide those options? Does anyone really need to search for Recorded TV programm?? There is such an option (might be different translation). – David – 2015-07-13T08:30:29.270

Just was going to ask this question, and found it. It seems to me, btw, that the search in windows has actually became worse over the years (since 2000).... – JosephDoggie – 2018-08-07T18:57:09.647