Windows 10: What is the syntax of search strings in File Explorer's search box?

Discus and support What is the syntax of search strings in File Explorer's search box? in Windows 10 Network and Sharing to solve the problem; File Explorer has a search box in the upper right. If I type the string ~* then it doesn't just search for filenames starting with tilde. Somehow I... Discussion in 'Windows 10 Network and Sharing' started by Norman Diamond, Jan 13, 2021.

  1. What is the syntax of search strings in File Explorer's search box?


    File Explorer has a search box in the upper right. If I type the string ~* then it doesn't just search for filenames starting with tilde. Somehow I found that I can type file:~"*~*" and it finds all filenames containing a tilde. But tomorrow I might want to search for something else.


    However, I cannot find documentation of the syntax of the string that can be typed into the search box. I've found other threads asking the same question but I haven't found an answer.


    By the way the reason for today's search is that Windows 10 knew I wasn't active when it did a Windows Update and rebooted, and it kindly provides this simple intuitive friendly method of reopening all the documents I had open in Microsoft Word. But what is the full syntax of the filename search string, and syntaxes of other attributes such as date ranges and other search criteria?


    [Edit: typo corrected in first word of subject]

    :)
     
    Norman Diamond, Jan 13, 2021
    #1

  2. File Explorer search syntax

    There is no complete, official reference that I've ever found. The closest is this:

    Advabced Quert Syntax

    But even that is incomplete.

    Here are key concepts I've learned:

    • If serching for names with special characters normally used in search syntax, the text must me enclosed in quotes:
    Code:
    [b]name:"(8).txt"[/b]
    • But if you try the above with wildcards, you'll be disappointed. For wildcards to be used within quoted strings, you have to use a tilde ':~':
    Code:
    [b]name:~"*(*)*" <- any item with parentheses in name.[/b]
    • To search for empty properties, use empty square brackets:
    Code:
    [b]ext:.jpg DateTaken:[][/b]

    What is the syntax of search strings in File Explorer's search box? e69bc411-933f-4053-9cef-1d842595619c?upload=true.png


    • You can narrow Search Results to a specific folder or sub-folder by including
      FolderName in your search:
    Code:
    [b]ext:.jpg DateTaken:[] FolderName:Charlie[/b]

    What is the syntax of search strings in File Explorer's search box? aff41611-eed0-41a7-9807-d24885a63023?upload=true.png


    I think I've covered the most common needs. Happy to follow-up if you have more spedific questions.

    Keith
     
    Keith A. Miller, Jan 13, 2021
    #2
  3. pjfarr Win User
    Search syntax for "folders containing specific file types" ??

    Thanks Lance. Most of that I know already. I was asking for syntax to specifically find folders containing a certain file type i.e. photos.

    For instance a search string that would in effect request: "List all folders on drive D containing photos" or "List all folders on drive D containing videos" and have just the folders containing those files, not the files themselves, listed in the results.
     
    pjfarr, Jan 13, 2021
    #3
  4. What is the syntax of search strings in File Explorer's search box?

    File Explorer Search Not Working


    I am trying to search in File Explorer (Windows Explorer, My Computer) and it will not find anything. I can copy text from a name in the list and paste it in the search box and it still finds nothing. I have looked at the suggestions that have been posted and nothing I find that is relative to this works. Anyone have any suggestions? I am running Win 10 Pro on an I3 coustom desktop computer.
     
    Maestro2711, Jan 13, 2021
    #4
Thema:

What is the syntax of search strings in File Explorer's search box?

Loading...
  1. What is the syntax of search strings in File Explorer's search box? - Similar Threads - syntax search strings

  2. File Explorer search syntax

    in Windows 10 Gaming
    File Explorer search syntax: I want to do a relatively simple search.I have a folder with many files ~500 . I want to copy to another folder files with names that do not have _PM in themHow do I search for then select those files?i.e. can I search for: and not "_PM"?...
  3. File Explorer search syntax

    in Windows 10 Software and Apps
    File Explorer search syntax: I want to do a relatively simple search.I have a folder with many files ~500 . I want to copy to another folder files with names that do not have _PM in themHow do I search for then select those files?i.e. can I search for: and not "_PM"?...
  4. File Explorer search box

    in Windows 10 Gaming
    File Explorer search box: Hi, how do I get predictive text results to appear in the File Explorer search box as I am typing? In Windows 10, when I searched a drive using the file Explorer search, all the previous searches would appear in a drop down as I was typing. But this no longer happens. Thanks...
  5. File Explorer search box

    in Windows 10 Software and Apps
    File Explorer search box: Hi, how do I get predictive text results to appear in the File Explorer search box as I am typing? In Windows 10, when I searched a drive using the file Explorer search, all the previous searches would appear in a drop down as I was typing. But this no longer happens. Thanks...
  6. Wat is the syntax of search strings in File Explorer's search box?

    in Windows 10 Network and Sharing
    Wat is the syntax of search strings in File Explorer's search box?: File Explorer has a search box in the upper right. If I type the string ~* then it doesn't just search for filenames starting with tilde. Somehow I found that I can type file:~"*~*" and it finds all filenames containing a tilde. But tomorrow I might want to search for...
  7. File Explorer search box

    in Cortana
    File Explorer search box: When I start to type into the 'search' box on File Explorer on the right side of the address bar, if I type at normal speed the first one or two characters do not appear or are overwritten as I type. I have File Explorer set to automatically start in the 'search' box. To...
  8. File Explorer Search box

    in Windows 10 Network and Sharing
    File Explorer Search box: When I start to type into the 'search' box on File Explorer on the right side of the address bar, if I type at normal speed the first one or two characters do not appear or are overwitten as I type. I have File Explorer set to automatically start in the 'search' box. To...
  9. File Explorer search syntax

    in Windows 10 Network and Sharing
    File Explorer search syntax: Since local help files have become, for reasons I cannot fathom, anachronistic, I have been looking for current documentation on the use of the built-in file search tools on Windows 10. I'm in need of the full set of syntax and usage. I can't find what I need because,...
  10. searching for a specific string in File Explorer

    in Windows 10 Network and Sharing
    searching for a specific string in File Explorer: I used to have lots of MP3 files on my network drive that began with "01)." or "02)." etc. I have converted most of them to begin "01" or "02" etc. but now I would like to do a search or "01)." to find any I may have missed but when I search for that it gives me all...