2

How to filter the result to the single result item only, not "any" similar items.

Using Windows Explorer Search syntax

Sample file name: config.config

Search string in Windows Explorer: name:config ext:config

Full name sample explicit sample with extension

Wanted: one single item in result like the syntax is working with "add" instead of "or" methode.

3
  • Did you try to use quotes for the name part of the search and filename instead of name?
    – Seth
    Jul 11, 2018 at 10:23
  • filenameis no syntax keyword. Quotes are only a needed issue in case of space char between words. Anyway I tried but the result is the same.
    – Nasenbaer
    Jul 13, 2018 at 6:47
  • It's listed as a syntax keyword for kind:everything just like ext is in the document you linked.
    – Seth
    Jul 13, 2018 at 6:57

1 Answer 1

7

You can use the name:= filter for this, like so:

name:=Foo.bar

Note the equals character, this will give you an exact match.

1
  • Tested! The result becomes as expected. syntax name:=config.config > config.config file found. Very interesting to have double operator usage in a Microsoft system. Not clean and overhad but it is like it is. Thank you!
    – Nasenbaer
    Jul 13, 2018 at 7:52

You must log in to answer this question.

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