Search for files with dot

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Thany
Senior Member
Senior Member
Posts: 292
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Search for files with dot

Post by *Thany »

I could be wrong, but when the Find Files feature sees a dot in the thing you search for, it becomes unrealiable.

When I search for asp.net files (no quotes) starting in C:\Windows, it does find C:\Windows\INF\ASP.NET (which doesn't match), but it doesn't find C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files (which does match).

Isn't that strange? I've never had anything like this, so I suspect the dot has a magical effect on searching. But that doesn't make sense to me. Can anyone clear this up?

I'm on TC 9.21a, Windows 10.
Total Commander 11 on Windows 10
User avatar
Stefan2
Power Member
Power Member
Posts: 4124
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Search for files with dot > will look for the exact name match

Post by *Stefan2 »

Search dialog >>> F1 / [Help]
Search for:
Multiple search masks can be entered, separated by spaces (see examples below).
When the search string contains a dot, Total Commander will look for the exact name match.

So I think >asp.net files<
will look for >asp.net< exact name AND for something with >files< in name?


Perhaps try using >*asp.net?files<



 
Thany
Senior Member
Senior Member
Posts: 292
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Re: Search for files with dot

Post by *Thany »

I'm curious to what it was actually trying to match.

It is neither an AND search, nor an OR search. In either case I would've been able to find "Temporary ASP.NET Files".

Also, "When the search string contains a dot" which it did, then "Total Commander will look for the exact name match" is clearly not true. So then either the help is inaccurate, or there's a bug in the search algorithm.
Total Commander 11 on Windows 10
User avatar
Hacker
Moderator
Moderator
Posts: 13040
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Search for files with dot

Post by *Hacker »

Thany,
I'm curious to what it was actually trying to match.
Exact matches for "asp.net" and "files". Space is considered a delimiter between exact filenames.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for files with dot

Post by *petermad »

Just search for: *asp.net files
Or for: "*asp.net files" if you don't want for example C:\Windows\INF\ASP.NET to be found as well
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Thany
Senior Member
Senior Member
Posts: 292
Joined: 2003-09-30, 09:20 UTC
Location: Netherlands

Re: Search for files with dot

Post by *Thany »

Why can it then not search for (without the quotes), filenames containing "asp.net", filenames containing "files", and filenames containing "asp.net files"? Where the latter would be closer to the top of the list because it's a more exact match than the others.

Not search *at all* for "asp.net files" (without the quotes) when that's exactly what I type, is just wrong.

And why would I put an asterisk in front? If that works (not tested) it would introduce another bug: it would change the meaning of the space character magically. That would also be wrong.
Total Commander 11 on Windows 10
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for files with dot

Post by *petermad »

And why would I put an asterisk in front?
Because the directory you want to find is: "Temporary ASP.NET Files" not "ASP.NET Files" - if there is a dot in the name TC searches for exactly what is written - putting an asterisk in front expands the search to everything that has "ASP.NET Files" in the end of the name.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Search for files with dot

Post by *Usher »

Maybe it's not clear enough. I think it should be added something like that:
You are free to use free format search for a string before the first dot in a name. Otherwise you are allowed only to use strict search or explicit wildcards.
Andrzej P. Wozniak
Polish subforum moderator
Post Reply