Fla$her wrote: 2025-04-02, 08:54 UTC
Hmm. Is there a difference between x32 and x64?
No, and it has been like this for a very long time.
Help wrote:%P causes the source path to be inserted into the command line, including a backslash (\) at the end.
When the parent entry ".." is selected, %S produces no result, leaving the path with a trailing backslash.
Mapaler wrote: 2025-04-01, 13:21 UTC
This is indeed in line with the rules of Windows.
Mapaler wrote: 2025-04-02, 08:27 UTC
I think any program that uses the
CommandLineToArgv Win32API will have this problem, because that's the Windows parsing logic.
According to Windows rules, the way arguments are parsed is left entirely up to the program being launched. This makes it messy and inconsistent. Windows programs also don’t use a consistent way of parsing arguments. The CommandLineToArgvW API and similar functions in programming languages are just a possible way to implement basic argument parsing. They are not a Windows rule.
The parent entry in TC is handled in a special way. It sometimes means parent folder, and other times current folder. When %P is directly followed by %S, %N, or similar placeholders that turn out to be empty (when the parent entry is selected), it might be useful if TC would remove the trailing backslash from %P. Alternatively, it might be useful if TC would return the value ".." or "." for the %S, %N, or similar placeholders.