Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a couple questions about searching for files on Windows 7. I find the XP method much easier than this new Windows 7 search. Note: I am only concerned about finding files whose names match a search term, not all files containing the search term.

  • Is there a way to search just by filename? When I use the search it seems to be searching within files and returning instances where the name of the file is used. Example: I have a whole web directory and want to find the javascript files. But if I enter myjavascript.js in the search, it also returns all the html files which reference the javascript file. This is both slow and difficult to actually find the reference to the file.

  • Is there a way to search for an exact match? The search seems to implicitly use wildcards. For instance, say I have a bunch of files in a folder: file1.txt, file11.txt, file12.txt, and file13.txt. If I enter file1.txt in the searcher it returns instances as if I were using a wild card file1*.txt.

share|improve this question

migrated from Mar 10 '11 at 9:08

This question came from our site for system and network administrators.

up vote 0 down vote accepted

You can use PowerShell or DOS =)

share|improve this answer
PowerShell is a great suggestion. A lot of people think PowerShell is just in Windows Server 2008, but it is in Windows 7 too. Also really helpful if you are coming from Linux/Unix. – ubiquibacon Apr 1 '11 at 22:16

You could take a look at some third party search engine's. Just Google something like Windows 7 Search replacement.

share|improve this answer

I too miss the days of XP search. Still, try Everything Search.

Freeware, runs on Windows 2000, XP, 2003 and Vista and Windows 7.

Also, from the FaQ:

1.3 Does Everything search file contents?

No, "Everything" does not search file contents, only file and folder names.

share|improve this answer

I believe that the answer to (at least) the first part of your question is to type filename:myjavascript.js into the search box. As to the second part, what happens if you type filename:"file1.txt" (i.e., enclose the filename in quotation marks)?

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .