Windows 10 and 11 has several hidden commands to do advanced file searching.
This guide shows how to use search commands and modifiers to refine your file searches.
Search commands enable you to specify and refine file characteristics, dramatically enhancing the accuracy and relevance of your search results.
|Searches for a specific file type
type:pdf – Finds all PDF files
|Searches for files by creation date
date:2020 – Files created in 2020
|Searches by last modification date
datemodified:yesterday – Files modified yesterday
|Finds files by size
size:>10MB – Files larger than 10MB
Search modifiers allow you to control how multiple search commands work together – giving you much better control of the search results.
The modifier commands include:
|Combines two search criteria
type:pdf AND date:2020
|Searches for either criteria
type:docx OR type:xlsx
|Specifies a range of values
date:01/01/2021 .. 31/12/2021
|Excludes files with certain criteria
Example: Using Search Commands and Modifiers Together
The following example shows how to find
- all Word documents
- created in March 2022
- but not modified since then.
type:docx AND date:March 2022 NOT datemodified:March 2022