"%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)
[9.51] Character ^ in filename is not correctly recognize by TC command line parameters %N
Moderators: Hacker, petermad, Stefan2, white
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Re: [9.51] Character ^ in filename is not correctly recognize by TC command line parameters %N
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.
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.