Page 1 of 1

Support of parameters in appended text for parameters %S and %R

Posted: 2024-08-17, 10:06 UTC
by petermad
The history txt says:
history wrote:29.04.21 Added: Parameters %S, %R, %P%S and %T%R now support appended text for each file. The parameter must be in double quotes, e.g. "%P%S.bak" would append .bak to each name (32/64)

09.08.23 Added: Button bar, start menu, parameters field: Better handling of parameters %S, %R, %P%S and %T%R in double quotes with appended text: "%Sbeforeext%Eafterext" inserts string beforeext before extension, and string afterext after. Supports env vars in the form %|variablename| (32/64)
It would be convenient if other TC parameters could be used for the appended text - so that a construction like for example this this: "%P%S%N" would append the output of %N instead if just appending the string %N

Re: Support of parameters in appended text for parameters %S and %R

Posted: 2024-10-09, 17:33 UTC
by Fla$her
I'm wondering, why not treat this as a bug?

Re: Support of parameters in appended text for parameters %S and %R

Posted: 2024-10-10, 07:47 UTC
by ghisler(Author)
This is unfortunately unfeasible to add. I would either add the entire code again inside of itself to handle variables within variables, or somehow call it recursively, which would lead to lots of problems with double quotes etc.