%x%S doesn't work correctly

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14823
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

%x%S doesn't work correctly

Post by *petermad »

Scenario:

Make for example this button:

Code: Select all

TOTALCMD#BAR#DATA
cd
? %X%P%S2
WCMICONS.DLL,19



-1
Make and select these two files in the left panel:   c:\dir\file1.txt and c:\dir\file2.txt

Click the button - the output is: c:\dir\file1.txt c:\dir\file2.txt - as expected

Make this button instead:

Code: Select all

TOTALCMD#BAR#DATA
cd
? %X%P%x%S2
WCMICONS.DLL,19



-1
now the output is: c:\dir\file1.txt file2.txt - the path is only applied to the first filename!
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, these combinations are not supported. The help only mentions %S and %P%S, and also this:
By putting %P, %p, %T or %t directly in front of %S or %s, the path name is inserted with the file name for each file.
Currently it's not planned to support other combinations, sorry.
Author of Total Commander
https://www.ghisler.com
Post Reply