[TC 10.00b10] /T is ignored for cm_Edit

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

[TC 10.00b10] /T is ignored for cm_Edit

Post by *Fla$her »

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit
/CGL0T="%T:~,-1" /N="name1.txt|name2.txt"
wciconex.dll,28
Create files in the inactive panel folder
or

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit
/CGL0N="name1.txt|name2.txt" /T="%T:~,-1"
wciconex.dll,28
Create files in the inactive panel folder
Files are created in the active panel.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.00b10] /T is ignored for cm_Edit

Post by *petermad »

2Fla$her
The T parameter is not about where to create the files - but where to find template files to replace the created file.
Help wrote:cm_Edit
T: Instead of creating an empty file, copy a template file to the new name. By default, the user's template directory will be used. The first file in it with the same extension will be copied to the new file. If no file is found, an empty file will be created
T="c:\path": Sames as T but use the specified template directory

Try:

Code: Select all

TOTALCMD#BAR#DATA
cm_Edit
/CGL0N="%Tname1.txt|%Tname2.txt"
wcmicons.dll,28
Create files in the inactive panel folder
You will have to reload the target panel to see the new files.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10.00b10] /T is ignored for cm_Edit

Post by *Fla$her »

2petermad
I didn't even think that /T= would be used differently than in other commands, and names can be written with paths. I believe that the entry I have given would be more concise and would shorten the resulting length of the command line, improving capacity.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14914
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.00b10] /T is ignored for cm_Edit

Post by *petermad »

2Fla$her
shorten the resulting length of the command line
That is why I suggest a new parameter /@="filelist.txt" here: https://ghisler.ch/board/viewtopic.php?p=436522#p436522

Then the names of the files could be put in the filelist.txt file with full path, and parameters like /C@="%T%WL" could be used.

Also a /P="path" parameter could be useful to supplement the /N parameter.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10.00b10] /T is ignored for cm_Edit

Post by *ghisler(Author) »

Moderator message

Not a bug, moved to suggestions
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2390
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10.00b10] /T is ignored for cm_Edit

Post by *Fla$her »

2petermad
The first suggestion is not good, because often creating a file instead of listing names in one line is a bad option.
%WL, but rather %WF, can harm if the target directory matches the working directory.

We need the second one.
Overquoting is evil! 👎
Post Reply