how to search in FindFiles

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
vladobbb
Junior Member
Junior Member
Posts: 2
Joined: 2023-01-30, 07:34 UTC

how to search in FindFiles

Post by *vladobbb »

Hi there,

can you advice how I can find files which contains "2.96" in filename? Just entering 2.96 into Search For field does not work

Many thanks

Vladimir
sa16
Senior Member
Senior Member
Posts: 325
Joined: 2021-09-10, 07:15 UTC

Re: how to search in FindFiles

Post by *sa16 »

2vladobbb
Try this: *2.96*
Help wrote:When the search string contains a dot, Total Commander will look for the exact name match.
algol
Senior Member
Senior Member
Posts: 456
Joined: 2007-07-31, 14:45 UTC

Re: how to search in FindFiles

Post by *algol »

TC can do both - so called "glob"-searches and commonplace substring searches. The problem here is that TC does not use separate entry-masks for either type of search but rather mingles them into one single entry-field. To discriminate between both search-types TC will follow some internal rules - the most important one with respect to your problem being that any search-term containing a dot (".") will be interpreted as a "glob"-search that will obey an exact syntax but will also enable the use of wildcards.

Now your search-term does contain a dot in the filename already whereas simple filenames will use the dot as delimiter between the filename and the extension. As a consequence your search-term - expressed by formalistic "glob"-syntax - actually does contain 2 dots, one within the filename and another one implicitly between the filename and the extension to follow.

The exact term you will have to search for hence will be:
*2.96*.*
Another possibility to perform that search would be using search-plugins where you could specify "tc-name-contains" 2.96 which would help avoiding any confusion between the first dot in the filename and the second dot implicitly separating the filename from the (possible) file-extension.

HTH
Post Reply