copy/move dialog: target path - file mask

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Evds
Junior Member
Junior Member
Posts: 90
Joined: 2009-06-10, 11:09 UTC

copy/move dialog: target path - file mask

Post by *Evds »

In the help file is, concerning the "target path file mask *.*" in the copy/move dialog, the following mentioned: You can use any type of valid file name including wild cards as your target file name..

I was under the impressing that the first star was a placeholder for the filename and the second star a placeholder for the file extension.

But, when I select the file "test1.txt" and "test2.txt", press Copy and change in the copy dialog the filemask in "a*.*" the result is "aest1.txt" and "aest2.txt" instead of "atest1.txt" and "atest2.txt".
So, it seems as if everything that is entered before the "filename placeholder" * overwrites the source filename.

If I select the same files "test1.txt" and "test2.txt", press copy and change in the copy dialog the filemask in "*a.*" the result is "test1.txt" and "test2.txt" (the target filename is the same as the source filename).
So, it seems as if everything that is entered behind the first star is rejected.

If I do the same with the "extension placeholder" (the second star) the result is a bit different.
Anything that is entered behind the "extension placeholder" (the second star) is actually added to the target extension, as I would expect.

Wouldn't this feature be more useful if the stars where actual placeholders for the filename and the file extension?
And anything that is entered before the star is added before the source filename (or source extension) instead of overwriting the source filename (and source extension) and anything that is entered behind the star is added behind the source filename (or source extension) instead of being rejected in the case of the filename.
User avatar
petermad
Power Member
Power Member
Posts: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: copy/move dialog: target path - file mask

Post by *petermad »

I find this confusing too.

Also, if I select the files "test1.txt" and "test2.txt", press Copy and change the file mask to "*.*a" the resulting filenames are "test1.txta" and "test2.txta" (with "a" appended - as expected), but if I use the file mask "*.a*" the resulting filenames are "test1.axt" and "test2.axt" (with "'a" replacing the first character of the extension).
Last edited by petermad on 2020-10-17, 13:50 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.992 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
elgonzo
Power Member
Power Member
Posts: 570
Joined: 2013-09-04, 14:07 UTC

Re: copy/move dialog: target path - file mask

Post by *elgonzo »

Yeah, it would be nice to have a similar functionality for Copy/Move operations as in the Multi-Rename tool.

I too find trying to alter file names with these "wildcard masks" unsatisfactory and limited when copying more than a handful of files.

What i often end up doing is either rename the files with the MRT before copying/moving, or - if i don't want/can't rename the file in the source dir(s) - i first copy the files into a sub dir of the target directory, then rename them with the MRT and finally moving them one directory up to their intended destination. Not exactly a single-step operation, but on the upside, doing so gives me much more control and feedback (within the MRT) about what i am doing...
Windows 7 Pro x64 SP1
User avatar
Hacker
Moderator
Moderator
Posts: 11822
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: copy/move dialog: target path - file mask

Post by *Hacker »

IIRC the behavior emulates the command line (cmd.exe). The goal was to make them consistent.

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: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: copy/move dialog: target path - file mask

Post by *petermad »

I managed to append an "a" to the name part of the filename with this mask "?????????????????a.*" where I put more "?"s than possible characters in the chosen filenames - but IMHO "*a.*" should give the same result
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.992 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 9848
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: copy/move dialog: target path - file mask

Post by *petermad »

IIRC the behavior emulates the command line (cmd.exe). The goal was to make them consistent.
It does seem to be the same as in the command line, but not quite:

If I in TC copy the file atest.txt with the mask *a.* the result is atest.txt
If I at the commad prompt copy the file atest.txt with the mask *a.* the result is a.txt
License #524 (1994)
Danish Total Commander Translator
TC 9.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (2004) 64bit, 'Everything' 1.4.1.992 (x64)
TC 3.10 on Android 6.0
Get:
Extended TC Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply