Win10 Explorer Search / Force only exact hits


  1. Posts : 27
    Win10
       #1

    Win10 Explorer Search / Force only exact hits


    Hi,
    how do I search for "2017-" without receiving results like "2017" ?

    Rt now although in quotes, its still pulling out any random similarity.

    http://files.panodome.com/uploads01/...1532251038.jpg (image insert in forum not working)



    Regards,
    Frank
      My Computer


  2. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Specifying a search string for Windows search is very limited and at times downright obscure. You are better off using 3rd party tools.

    I think in the case of - the problem may be that - is being treated as a word delimiter, but not as a special character.

    For an eye-opener on one aspect see
    https://superuser.com/questions/1725...-the-file-name

    In general (and not complete, old) see
    Advanced Query Syntax | Microsoft Docs

    I prefer
    Locate32 (free)
    This, like other such tools such as Everything by void tools and Utrasearch, performs 'find-as-you-type' searches, potentially across all your disks, i.e. instantly (but not content search as does Windows search).

    It supports Regex and Perl syntax. (I've no idea if the other two do in the same way).
    Regular expressions in Perl - a summary with examples

    Win10 Explorer Search / Force only exact hits-1.jpg

    and here the search is specified to start with the string at the start only:
    Win10 Explorer Search / Force only exact hits-1.jpg

    from a set of files:
    Win10 Explorer Search / Force only exact hits-1.jpg

    Win10 Explorer Search / Force only exact hits-1.jpg
    : regex follows
    ^ = at start of line
    \w = any alphanumeric character a-z
      My Computers


  3. Posts : 27
    Win10
    Thread Starter
       #3

    Hey Dalchina, thanks for the comprehensive reply )
    Since I'm helping out on other peoples computers I need a solution that's on-board of Win10. I tried Command Prompt, but the "FIND" command also is not able to make a search on exact part of a file name
      My Computer


  4. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    Sorry, I think you're out of luck there on the basis of what you asked for originally, if you mean Windows search based only.

    I have quoted some documents relevant to Windows search.

    Elsewhere others frequently quote the free indexing tools, and they are frequently commended here.

    search in file for exact phrase with special symbols [windows 8.1]

    In fact, that was a surprise for me just now because I thought the default syntax for Name with no other specification would be "contains" (which would be Name:~=name.txt) but apparently it defaults to Name:~<name.txt which means "begins with" name.txt. In fact, from an efficiency point of view that is probably a logical default. But from a usability point of view it is terrible because it means that when users really want Name:name.txt to mean either "contains" or "ends with" they won't have a clue what to do to make those differences.

    Ref:
    http://windows.microsoft.com/en-us/w...ing-in-Windows
    Last edited by dalchina; 22 Jul 2018 at 11:42.
      My Computers


  5. Posts : 43,010
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    You could experiment with findstr - maybe you have..
    Search exact string in a file on Windows | Laur IVAN
      My Computers


  6. Posts : 3,275
    Win10
       #6

    Frank1000 said:
    Hey Dalchina, thanks for the comprehensive reply )
    Since I'm helping out on other peoples computers I need a solution that's on-board of Win10. I tried Command Prompt, but the "FIND" command also is not able to make a search on exact part of a file name

    I am not on Windows 10 at the moment but the following at a command prompt seems to work in Windows XP. The result is able to traverse sub directories.

    dir "C:\2017-" /on/og/a/s

    (note: names with spaces would require quotation marks)
      My Computers


  7. Posts : 27
    Win10
    Thread Starter
       #7

    hey das10 thanks, works fine ^-^

    thank u dalchina 2
      My Computer


  8. Posts : 16,953
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Frank,

    In File explorer's search bar you can use
    ~"*2017-*"

    It is the ~ that makes it an exact search & the pair of * that make it search all the way through rather than just at the start/end. You could confine it to just searching filenames by using
    filename:~"*2017-*"


    Denis
      My Computer


  9. Posts : 3
    Win11
       #9

    Try3 said:
    Frank,

    In File explorer's search bar you can use
    ~"*2017-*"

    It is the ~ that makes it an exact search & the pair of * that make it search all the way through rather than just at the start/end. You could confine it to just searching filenames by using
    filename:~"*2017-*"


    Denis
    maaaaaan... decade PLUS issue, solved. thx T3! \m/_(^^,)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:12.
Find Us




Windows 10 Forums