Windows Explorer search command with exact file name match

0

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.

Nasenbaer

Posted 2018-07-11T09:38:02.643

Reputation: 548

Did you try to use quotes for the name part of the search and filename instead of name? – Seth – 2018-07-11T10:23:26.030

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 – 2018-07-13T06:47:30.220

It's listed as a syntax keyword for kind:everything just like ext is in the document you linked. – Seth – 2018-07-13T06:57:39.940

Answers

1

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

name:=Foo.bar

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

MMM

Posted 2018-07-11T09:38:02.643

Reputation: 1 242

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 – 2018-07-13T07:52:39.430