Page 1 of 1

[TC 10.00b10] /T is ignored for cm_Edit

Posted: 2023-07-06, 17:08 UTC
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.

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

Posted: 2023-07-06, 22:50 UTC
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.

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

Posted: 2023-07-06, 23:54 UTC
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.

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

Posted: 2023-07-07, 00:15 UTC
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.

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

Posted: 2023-07-07, 10:14 UTC
by ghisler(Author)

Moderator message

Not a bug, moved to suggestions

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

Posted: 2023-07-08, 11:10 UTC
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.