Currently cm_List and cm_ListInternalOnly supports a filename (with full path) on the commandline.
It seems logical that this should also be supported for cm_ListOnly
It could also be nice if the path of the current panel could be used if filename was indicated without path.
Solved [TC 10 b4] Inconsistent support for filename with cm_List* commands
Moderators: Hacker, petermad, Stefan2, white
Solved [TC 10 b4] Inconsistent support for filename with cm_List* commands
Last edited by petermad on 2021-04-13, 19:46 UTC, edited 1 time in total.
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: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10 b4] Inconsistent support for filename with cm_List* commands
I will add it. It's not there because with one parameter cm_List and cm_ListOnly would do exactly the same thing.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10 b4] Inconsistent support for filename with cm_List* commands
Confirmed fixed in TC 10 b5history.txt wrote:07.04.21 Fixed: CM_LISTONLY now accepts a file name as parameter just like CM_LIST (32/64)

But, there is another peculiar behaviour with cm_List, cm_ListOnly and cm_ListeInternalOnly - if I (in a button) only use the file name without path, then the command only works (=opening the file if it exists in the source file panel) every second time it is executed - with full path for the filename, there is no such problem
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: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10 b4] Inconsistent support for filename with cm_List* commands
Sorry, only full path and environment variables are supported.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10 b4] Inconsistent support for filename with cm_List* commands
Can you explain why it works every second time without the full path?
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: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10 b4] Inconsistent support for filename with cm_List* commands
It depends on what the current directory is when you launch the command. Total Commander does not set the current directory before each command, only before things like launching other programs. So it's just by chance that the current directory is the same as in the active panel.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Solved [TC 10 b4] Inconsistent support for filename with cm_List* commands
OK 

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