Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

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:\".

share|improve this question
Another similar question: superuser.com/questions/26593/… –  snowdude Jun 17 '13 at 8:13
add comment

marked as duplicate by techie007, Karan, Heptite, Moses, Mokubai Apr 12 at 12:26

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.

2 Answers

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.

share|improve this answer
This possibly requires Natural Language Search component, if you have custom (stripped) version of Windows, you may have it removed. –  gronostaj Jun 16 '13 at 7:03
add comment

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

share|improve this answer
That's what I put in my answer, about 5 minutes before you :) (content: or contents: works fine) –  misterjaytee Jun 16 '13 at 6:47
add comment

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