Windows search with specific options

0

For example, i have two files:

Textfile1.txt
Textfile2.txt

where first file is empty, and second contains string file1

Can I create a search query in standard windows explorer to match Textfile2.txt only? I mean file1 query will match both files, first because its name contains this string and second because it has this string as its content.

Alex Zhukovskiy

Posted 2014-12-15T12:10:29.900

Reputation: 165

1

(Not Windows 8, therefore a comment) Normally name:Textfile1 is your solution, but: The problem even when partial matches are enabled, the search only shows partial matches if they are from the file name beginning. name:Text works - but name:file or name:*file* doesn't. Maybe the Windows 8 search with Bing is improved in this regards. In W7 its terrible and most people use third-party tools like everything

– nixda – 2014-12-15T13:40:58.167

Answers

2

You can use content keyword to search in content only, not file name:

content:file1

user364455

Posted 2014-12-15T12:10:29.900

Reputation: 2 679