%M works incorectly with slashes.
Moderators: Hacker, petermad, Stefan2, white
%M works incorectly with slashes.
On all 9.20 versions "%M" works incorrectly with forward slash as a path separator e.g. on FTP, gets entire path with disk "letter" (respectively digit) instead of just name.
Confirmed.
This is indeed new to TC 9.20
This is indeed new to TC 9.20
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Thanks, I will fix it. %m is also affected. %T and %t were affected in TC 9.12 and older too.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
%m doesn't seem to be affected in TC 9.20rc1 - here it gives just name as expected.%m is also affected.
But %p also seems to be getting the path differently on FTP:
%P gives: /remote_dir/parent_dir(s)/current_dir/
%p gives: ftp://username@hostname/remote_dir/parent_dir(s)/current_dir/
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I remember doing this so users could pass the URL to the called program, so I will keep it and document it in the help. Not sure whether I should change %t - it may affect users who currently use that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Right now %t (and %T) gives:
0:/remote_dir/parent_dir(s)/current_dir/\
notice the backslash at the end
To match %p I think %t should give:
ftp://username@hostname/remote_dir/parent_dir(s)/current_dir/
And %T should be fixed to give:
/remote_dir/parent_dir(s)/current_dir/
0:/remote_dir/parent_dir(s)/current_dir/\
notice the backslash at the end
To match %p I think %t should give:
ftp://username@hostname/remote_dir/parent_dir(s)/current_dir/
And %T should be fixed to give:
/remote_dir/parent_dir(s)/current_dir/
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I have already fixed %T for the next version. But I'm not so sure about %t what it should return.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Well, as I wrote: I think it should match %p and then document both in the help.But I'm not so sure about %t what it should return
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
%M, %T and %t fixed in TC 9.20rc2 for FTP entries 
Only one little thing: For some reason %t on lokal harddisk uses uppercase drive letter where %T, %P and %p all uses lowercase drive letter...

Only one little thing: For some reason %t on lokal harddisk uses uppercase drive letter where %T, %P and %p all uses lowercase drive letter...
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Confirmed.It seems that %T %P %p depends on "DrivesShowUpcase" setting, while %t is hardcoded.
It would be nice if it was consistant.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar