TC doesn't find files with dot in the name

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Sektor
Member
Member
Posts: 166
Joined: 2007-04-04, 10:11 UTC
Location: Russia

TC doesn't find files with dot in the name

Post by *Sektor »

Say, I have file "My.Text.File.txt" in some folder.
If I try to search for "My." or "My.Text", TC doesn't find it (File Explorer finds perfectly).
License #299429
There is no knowledge that is not power
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

2Sektor

TC help says:

Code: Select all

When the search string contains a dot, Total Commander will look for the exact name match.
So you should use the * wildcard, although it could produce "wrong" results...

HTH
CoolWater
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the English forum.

Hacker (Moderator)[/mod]
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.
GPEX
Junior Member
Junior Member
Posts: 5
Joined: 2017-01-29, 22:48 UTC

Re: TC doesn't find files with dot in the name

Post by *GPEX »

Sektor wrote:Say, I have file "My.Text.File.txt" in some folder.
If I try to search for "My." or "My.Text", TC doesn't find it (File Explorer finds perfectly).
original file - My.Text.File.txt

My.*
My.Text* or
*Text.File.txt

Just FYI
User avatar
Sektor
Member
Member
Posts: 166
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Post by *Sektor »

All is well and good, but why File Explorer does find it?
It's not a bug - it's a feature?
License #299429
There is no knowledge that is not power
User avatar
norfie²
Power Member
Power Member
Posts: 1041
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

It's not a bug - it's a feature?
Yes, it is a feature. TCmd's behaviour is fine if you need to find a file with exact filename.
E.g. your are looking for the file file.txt.
File explorer will find all files with *file.txt*. If thousand files matching this pattern you need to search the file with excact match file.txt in this thousand files by yourself.
"War is evil, in so far as it makes more bad people than it takes away."
Immanuel Kant in "Perpetual Peace"
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Sektor,
Explorer uses another rules for search field, obviously. :wink:

TC, as it was mentioned, expects full names with wildcards if you want to find dots, e.g. "*My.*" or "*My.Text*" (for searching in any part of filename) instead of your examples in first post.
Last edited by MVV on 2017-02-01, 07:16 UTC, edited 1 time in total.
User avatar
Sektor
Member
Member
Posts: 166
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Post by *Sektor »

MVV
OK. Thanks for explanations.
License #299429
There is no knowledge that is not power
Post Reply