This feature is not mentioned in the Help file (dlg_choosecommand.htm)history.txt wrote:21.09.16 Added: For the sorting commands like CM_SRCBYNAME, add parameter 4 to sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending (32/64)
Solved [TC 10.50] Missing parameter for cm_commands in Help
Moderators: Hacker, petermad, Stefan2, white
Solved [TC 10.50] Missing parameter for cm_commands in Help
Last edited by petermad on 2022-08-17, 11:21 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
Re: [TC 10.50] Missing parameter for cm_commands in Help
Moreover, -1 seems to do the same as 6. And 1 and 2 are not described accurately. (1=sort ascending, 2=sort descending)
Help - Dialog box: Choose command wrote:CM_*BYNAME, CM_*BYEXT, CM_*BYSIZE, CM_*BYDATETIME, CM_*NEGORDER
0 or no parameter=toggle, 1=set, -1 or 2=reset
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
Re: [TC 10.50] Missing parameter for cm_commands in Help
2white
Confirmed - there is a bug there - it goes all the way back to TC 9.0 beta 15 where the feature was intruduced.-1 seems to do the same as 6
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
Re: [TC 10.50] Missing parameter for cm_commands in Help
2petermad
I think parameter -1 was not added and the current behavior is a side effect and the bug is that the help says -1 is supported.HISTORY.TXT wrote: 20.09.16 Added: The following internal commands now accept parameters 0 (toggle, default), 1 (true), and 2 (false), except in main menu (* stands for LEFT, RIGHT, and SRC): CM_VERTICALPANELS,CM_*THUMBS,CM_*BYNAME,CM_*BYEXT,CM_*BYSIZE,CM_*BYDATETIME,CM_*NEGORDER (32/64)
Re: [TC 10.50] Missing parameter for cm_commands in Help
2white
I meant the feature of adding 4 - mentioned in my first post - was intruduced.
I meant the feature of adding 4 - mentioned in my first post - was intruduced.
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
Re: [TC 10.50] Missing parameter for cm_commands in Help
Confirmed that:

BUT - the bug that CM_SRCBYSIZE -1 and CM_SRCBYSIZE 6 has the same effect still persists. CM_SRCBYSIZE -1 should have the same effct as CM_SRCBYSIZE 2 - according to the old Help (TC 10.50)
On the other hand -1 is no longer mentioned as a parameter for the CM_*BY* parameters in the Help for TC 10.51 - and -1 was never mentioned in history.txt for the CM_*BY* parameters.
But since -1 is still accepted as a parameter - i think it should do the same as 2 - to match parameters for commands like CM_*COMMENTS
CM_DIRBRANCH and CM_LEFTDIRBRANCH
And maybe using undocumented parameters like 3 (works as 0), and 7 (works like 6 and -1) and -2 (works as 6) - should result in an error message - or should all work as 0...
Is added to the Help in TC 10.51 rc14: When added, sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending

BUT - the bug that CM_SRCBYSIZE -1 and CM_SRCBYSIZE 6 has the same effect still persists. CM_SRCBYSIZE -1 should have the same effct as CM_SRCBYSIZE 2 - according to the old Help (TC 10.50)
On the other hand -1 is no longer mentioned as a parameter for the CM_*BY* parameters in the Help for TC 10.51 - and -1 was never mentioned in history.txt for the CM_*BY* parameters.
But since -1 is still accepted as a parameter - i think it should do the same as 2 - to match parameters for commands like CM_*COMMENTS
CM_DIRBRANCH and CM_LEFTDIRBRANCH
And maybe using undocumented parameters like 3 (works as 0), and 7 (works like 6 and -1) and -2 (works as 6) - should result in an error message - or should all work as 0...
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: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10.50] Missing parameter for cm_commands in Help
Exactly. -1 interferes with the possibility to add values like 4 to the total parameter. Therefore it's no longer mentioned. What happens when you pass it to the command is not defined.On the other hand -1 is no longer mentioned as a parameter for the CM_*BY* parameters in the Help
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10.50] Missing parameter for cm_commands in Help
Help erroneously states that parameters 4,5,6 are supported for CM_*NEGORDER and that 1=ascending and 2=descending for these commands as well.
CM_*NEGORDER should be described separately:
0 or no parameter=toggle, 1=set, -1 or 2=reset.
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
CM_*NEGORDER should be described separately:
0 or no parameter=toggle, 1=set, -1 or 2=reset.
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 10.50] Missing parameter for cm_commands in Help
I agree.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 10.50] Missing parameter for cm_commands in Help
2ghisler(Author)
3 works like 0
7 works like -1 and 6
-2 works like 6
-1 works like 6What happens when you pass it to the command is not defined.
3 works like 0
7 works like -1 and 6
-2 works like 6
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
Re: [TC 10.50] Missing parameter for cm_commands in Help
Help confirmed fixed in TC 10.51rc2:

Help wrote:CM_*BYNAME, CM_*BYEXT, CM_*BYSIZE, CM_*BYDATETIME
0 or no parameter=toggle, 1=ascending, 2=descending
4: When added, sort by additional columns, e.g. CM_SRCBYSIZE 5 adds sort by size, ascending
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
CM_*NEGORDER 0 or no parameter=toggle, 1=set, -1 or 2=reset
8: Store current sort order, sort direction and additional sort columns internally
9: Restore all sort order parameters stored with option 8
Confirmed fixed in TC 10.51rc2history.txt wrote:16.08.22 Fixed: Ignore commands CM_*BYNAME, CM*BYSIZE etc. when the parameter passed to it is negative (32/64)

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