Page 2 of 2

Re: [9.51] Character ^ in filename is not correctly recognize by TC command line parameters %N

Posted: 2020-09-24, 06:12 UTC
by gdpr deleted 6
"%P%O.%E" is clever!

It is worth keeping in mind that if used on a file/dir name without an exension (for instance, "README" without ".TXT"), it adds a trailing dot that normally wouldn't be there. Whether this would actually be a problem depends entirely on the executed script/program, though (i guess many - if not most - programs would have no issue with a path with a trailing dot)

Re: [9.51] Character ^ in filename is not correctly recognize by TC command line parameters %N

Posted: 2021-02-06, 06:35 UTC
by andry81
Another trick is to use like this: "%P\%N", where the double back slash usually is treated as a single character.
Additional plus is that when the exe file is called, then the last quote character won't be treated as escaped (when %N is empty), for example, when the [..] item is selected.