Windows 7 Search for Content Only

1

I do not see any way to use Windows 7 search to search file content ONLY w/o it also including file names. For example, how do you search for files that contain "L:\" and only files that CONTAIN "L:\"? I do not want a list of files that have that in their name (filespec) but only a list of files that have that in their content.

Someone suggested L:\ System.FileName:NOT ~L:\ but that excludes all files with L:\ in their name (filespec) including the ones that contain "L:\".

fupsduck

Posted 2013-06-16T06:12:47.320

Reputation: 131

Question was closed 2014-04-12T12:26:53.493

Answers

3

I believe this is as simple as:

contents: L:\

You may need to make sure you've switched on the option to "Always search file names and contents"

Sorry, I don't have Windows 7 to test this, but it works fine on Windows 8.

misterjaytee

Posted 2013-06-16T06:12:47.320

Reputation: 1 763

This possibly requires Natural Language Search component, if you have custom (stripped) version of Windows, you may have it removed. – gronostaj – 2013-06-16T07:03:34.367

2

Found filter option 'content:'. So use the filter option 'content:L:\'.

fupsduck

Posted 2013-06-16T06:12:47.320

Reputation: 131

That's what I put in my answer, about 5 minutes before you :) (content: or contents: works fine) – misterjaytee – 2013-06-16T06:47:14.270