How do I search for file extension and content in Windows 7?

8

0

In Windows XP this was very simple, but for some reason in Windows 7 it is not...

I want to search for all files from C given an extension "example: *.sql" that contains the content "table_abc".

I searched and the only information I got was to change ToolsFolder optionsSearch"always search file names and contents...", but this is not what I am looking for.

RollRoll

Posted 2016-09-01T13:32:29.977

Reputation: 381

Answers

12

In the search bar on the upper right hand corner of the file explorer you need to add the prefix type: and content:.

So the search you would perform is "content:table_abc type:.sql" without quotes

Here is an image for reference. In it I searched for a .sql file containing the word "object_data". The search I performed was type:.sql content:object_data


Search

David Chapman

Posted 2016-09-01T13:32:29.977

Reputation: 397

1

In windows 2012 Search the syntax would be:

file:.sln Project1.proj

or

file:.ext content:"My Content String"

2012 does not recognize type, but does recognize file and content is optional.

This is a good way to find Solutions in a source tree is you know a filename.

jlo-gmail

Posted 2016-09-01T13:32:29.977

Reputation: 111