This question already has an answer here:

In Windows Explorer, I would like to search for all files in a specific folder and its subfolders with the file extension .doc. To do that, I tried to enter .doc in the search bar on the top right of the window. That gave me as a result all the files containing doc, not necessarily with that file extension, including folders named "doc".

In Windows XP, there was if I remember correctly something to only search for one file type, but I can't find anything like that in Windows 7.

How to only search for files with a specific file extension and not other files which contain that extension in their name?

marked as duplicate by Ƭᴇcʜιᴇ007 windows Aug 20 '16 at 13:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Have unchecked the "Hide extensions for known file types" in Folder Options? Then when you can search for a certain file with a specific extension. – alljamin Aug 20 '16 at 9:06

Windows Vista and higher support the Advanced Query Syntax (AQS). To search for files with a particular file extension (.doc), you'd type:


or simply:


(the 1st one is better - it's well worth learning AQS)

AQS References

Advanced Query Syntax (Windows)

Mastering Windows Search using Advanced Query Syntax | Ars Technica

Exploring Vista's Advanced Search

Become a Windows Search ninja with Advanced Query Syntax | Ed Bott

How to Search for Files Created Between Two Dates in Windows

Not the answer you're looking for? Browse other questions tagged or ask your own question.