Want to search ONLY file names in Windows 7 Explorer?

Anonymous
2011-02-06T06:17:16+00:00

I usually just want to seach for a "word in a file & folder name" -- and often can give a a date range. In Windows 7 Explorer, as soon as I type the word, I get all files that contain the word in the content, as well.  How can I have it search only the file or folder name?

I also don't use "my documents" or "Libraries"...I create my own subfolders -- and generally on a stick drive...so I don't really understand "indexing" or if it's relevant to how I organize my files.

I miss the Windows XP search feature in Windows 7 Explorer!

Windows for home | Previous Windows versions | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2011-02-06T06:32:16+00:00

How can I have it search only the file or folder name?

Folder:

foldername:example

Word in name:

name:example

I miss the Windows XP search feature in Windows 7 Explorer!

Let Microsoft know you want Windows Explorers features returned:

Since many people seem to agree that some or all the changes made to Windows Explorer have actually made it less user friendly, you can go to the Windows 7 Feedback page and (politely) let them know your suggestions for improving it:

http://mymfe.microsoft.com/Windows%207/Feedback.aspx?formID=195

Note: don't make the message too long, there is a size limit to your message even though the page doesn't tell you about it.


Have Questions About Installing Windows 7?

FAQ - Common Windows 7 Installation Questions & Answers

Was this answer helpful?

40+ people found this answer helpful.
0 comments No comments
Answer accepted by question author
@CmdrKeene 90,631 Reputation points Volunteer Moderator
2011-02-06T18:05:52+00:00

No need for anything complicated.  Just type what you're looking for.  If it's in the filename, those results will be returned first, above any results where your search term isinside the file.  Easy.

Non-indexed locations such as stick drives can still be searched, but take a little more time to search (sort of like XP).


If this solves your issue, click the 'Propose as Answer' link below, and vote as helpful by clicking the green triangle to the lelft. Thanks!

Was this answer helpful?

20+ people found this answer helpful.
0 comments No comments

87 additional answers

Sort by: Most helpful
  1. @CmdrKeene 90,631 Reputation points Volunteer Moderator
    2015-08-24T15:35:32+00:00

    I answered that specifically:

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-08-24T14:26:35+00:00

    It does not answer the question.    How do we restrict the search to a word in a filename, preferably with wildcards?  I'm on an enterprise system with hundreds of thousands of files and I need to really restrict the search.   I've been running a search now for over 20 minutes and am up to 1402 results and I just need files.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2015-08-10T20:43:46+00:00

    Just install Everything and unsubscribe from this ridiculous thread.

    Your right, I was very wrong. But please see my newest reply on this page (page 6) where I most certainly did not "just repeat the same thing", in fact I tried my best to share everything I possibly could.  Your additional information is very welcome of course. Thanks for contributing to the community.

    Excerpt from May 3, 2015 post...
    Hey guys, found this again years later. You're right I didn't understand why the web-search Google-style results (show a ton of results and just use the best hit) didn't cut it. That might be because it's not sorted by relevance anymore (first entry below).<br>  I see that TrekDozer filled the direct question perfectly.  I want to also come back and share literally everything I know or have learned about search since this conversation began. As someone in this thread said, it's the level of quality in a reply that users and the community should expect from an MVP.<br><br><br><br><br><br> <br><br>Sort by Relevance <br><br>Typically, there's no need for anything complicated.  Just type what you're looking for.  If it's in the filename, those results will be returned first, above any results where your search term is inside the file.  Easy.<br><br><br><br><br><br>Non-indexed locations such as stick drives can still be searched, but take a little more time to show up in the results if you're searching internal contents in them (sort of like XP).<br><br><br><br><br><br>If you find for some reason that the exact-name matches are no longer showing up first (similar to how a Google result might), you can add the relevancy column, and sort by it (exact filename matches are treated as more relevant).<br><br><br><br><br><br><br><br><br>Search Only by Filename and Other Special ModifiersType something like these.  Note there are several modified examples of the same modifier.<br><br><br><br> Typing this... (search term in bold) ...will find: <br> --- --- <br> name:draft presentation files with draft or presentationin the name, in any order (can add words). <br><br>By default, "OR" is assumed between each word. To force both to exist, use AND (operators must be CAPS) <br> filename:"Presentation Draft" files with presentation draft appearing somewhere in the file name only (in this exact order) <br> filename:"* Presentation*" same as above (asterisks are always assumed unless you override) <br> filename:~"*(2)*" files with 2appearing surrounded by parenthesis <br> filename:~"*(?)*" Files containing any single character surrounded by parenthesis <br> *.xls all files ending with .xls(includes .xlsxbecause asterisks are always assumed unless you override) <br><br> <br><br>This isn't strictly a file name search, but it behaves like one because these letters (or any letters) rarely appear anywhere immediately after a period with no space) <br> "*.xls" example of override: will only return exact phrase match <br> contents:bill keyword bill appearing in the file (all same rules and conventions as above apply). <br><br><br><br>You can search by almost any file properties too. Or combine these, such as***.doc author:shawn** would file every doc file I made.  This is very useful in an office environment where you're searching folders many people share.  Try even more<br> like *.ppt author:shawn modified:this week and such.  It's powerful, and you can do the same thing inside the full Office Outlook against emails. I do this constantly, dozens of tiles a day in email especially. Need to quickly filter the emails<br> I'm seeing from:joe or subject:acquisistion.<br><br><br><br><br><br>In Outlook and in Windows Explorer, many of the common properties like subject, from, received, author and more are shown as buttons you can click (which also progressively provide mouse interaction like a calendar to choose that date, or a list of authors<br> in that folder already).  Typically I just type it because my hands are already on the keyboard, but you can click those buttons.  I usually need to only click in Outlook when I want to enter the hasattachment:yesfilter, because c'mon, that's<br> way too long to type.  In fact I even pinned that to my Quick Access bar so I could press Alt+1 to "press" it.  More about that here: http://cmdrkeene.com/use-quick-access-from-the-keyboard<br><br><br><br><br><br><br><br><br>Special Meanings <br><br>The * asterisks anywhere in the search terms are variable-length wildcards and will mean that any text could come at that point (but doesn't have to).  Example: *book would find "facebook", or just plain "book", but not "bookstore" because<br> there's no asterisk at the end.<br><br><br> <br><br>Question marks ? anywhere in the search terms are fixed-length wildcards that mean a single character occurs there (and must).  Example: book? would find "books" but not "book". <br><br> <br><br>**Special note:**unless you're using a specific override, Windows will work like a search engine and find anything containing your search term. In otherwords, unless you specify otherwise with these search examples, it will always find bookstore when<br> you type book.<br><br><br><br><br><br><br><br><br>Search Contents Even in Unindexed Locations<br><br><br>By default, Windows only searches inside files if the location is indexed (so it can return near-instant results). You can tell Windows to do an intensive search (just like XP would have done).<br><br><br><ol><br><li>Open Folder Options (type 'folder' into the Start menu to find it).</li><li>On the Search tab, click the 2nd option ("Always search file names and contents"), then click OK.</li></ol><br><br>After that, using quotes to phrase-search inside files should work, even in un-indexed locations.  Searches may take a while (just like XP), but they'll be complete and should return the results you want. More here: http://cmdrkeene.com/enable-full-file-search-in-non-indexed-folders<br><br><br>Search Inside More File TypesIf the location is indexed, but your phrase isn't being found.... do this to make sure the file type is getting indexed.  Do this, for example, if you are trying to find a phrase inside a non-standard file like a JavaScript or PHP file:<br><br><br><ol><br><li>Type 'index' into your Start menu to find the Indexing Options, then click the Advanced button.</li><li>On the File Types tab, find the file type you want to be indexed (tip: click in the list, then type the file type letters like JS to jump to it).</li><li>With the file type selected, make sure the 2nd option is selected "Index properties and file contents", then click OK to close each box.</li></ol><br><br><br>I believe these two setting changes would resolve about 90% of search frustrations people commonly have with Windows 7.  Please let me know if this helps for you. More here: http://cmdrkeene.com/instant-search-in-more-file-types<br><br><br><br><br><br>Windows 8: Search without leaving desktop <br><br>A key advantage to 7 (and to a lesser extent, Vista), was that you can search from the Start menu with a tap of your pinky finger.  Windows 8 does this too, but full-screen.  If you'd rather do it on the side in a small box like 7, you can by pressing Win+S<br> before you search.  You can also narrow-scope your searches with Win+W (search Control Panel only), Win+F (search Files only), Win+S (search everywhere), or Win+Q (search current app, if it can).  More here: http://cmdrkeene.com/start-an-app-without-leaving-the-desktop<br><br><br><br><br><br><br><br><br>Fix: Search Not Returning Control Panel results:http://cmdrkeene.com/fix-windows-8-1-returning-settings-results <br><br><br><br><br>Related:  I also want to point to this great info: http://www.dummies.com/how-to/content/how-to-customize-windows-7s-search-settings.html

    Just install Everything and unsubscribe from this ridiculous thread.

    Was this answer helpful?

    0 comments No comments