solved [TC 10.52rc1] CM_EXIT 4 does not work

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: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

solved [TC 10.52rc1] CM_EXIT 4 does not work

Post by *petermad »

ghisler(Author) wrote:Total Commander 10.52 RC1 is available now! CM_EXIT now supports the following parameters:
0 or no parameter: Just exit.
Or sum of:
1: Exit and restart Total Commander
2: Exit and restart, and switch between 32-bit and 64-bit versions (note: 2 and 3 do the same thing)
4: Save directories, tabs and panels (brief, full etc.) even when disabled in settings

4 can be either added to 1 or 2 for restarting, or used for itself to just save the settings.
CM_EXIT 4 does not work - CM_EXIT 5 and CM_EXIT 6 does worked as described though.
Last edited by petermad on 2022-10-04, 18:41 UTC, edited 1 time in total.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2230
Joined: 2020-01-18, 04:03 UTC

Re: [TC 10.52rc1] CM_EXIT 4 does not work

Post by *Fla$her »

2petermad
It's about the sum of the flags. 1 + 4 or 2 + 4. Only with 4 should not work.
The description for 4 does not specify a restart, only a save.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] CM_EXIT 4 does not work

Post by *petermad »

4 does not specify a restart, only a save
I See !
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2230
Joined: 2020-01-18, 04:03 UTC

Re: solved [TC 10.52rc1] CM_EXIT 4 does not work

Post by *Fla$her »

2petermad
Are you talking about that?:
or used for itself to just save the settings.
I don't understand how they should work without restarting? There are commands cm_ConfigSavePos and cm_ConfigSaveDirHistory, but they are about something else.
Overquoting is evil! 👎
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC 10.52rc1] CM_EXIT 4 does not work

Post by *Usher »

2petermad
Did you test TC 32-bit?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.52rc1] CM_EXIT 4 does not work

Post by *petermad »

Usher wrote: 2022-10-04, 19:29 UTC 2petermad
Did you test TC 32-bit?
Yes - it works the same as the 64bit version - at first I got the impression that CM_EXIT 4 would also do a restart in addition to saving directories etc. - but I realize that is what CM_EXIT 5 is for.

I would still like an option to restart in current directories, but without saving anything - see: https://www.ghisler.ch/board/viewtopic.php?t=77694
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: solved [TC 10.52rc1] CM_EXIT 4 does not work

Post by *petermad »

2Fla$her
I don't understand how they should work without restarting? There are commands cm_ConfigSavePos and cm_ConfigSaveDirHistory, but they are about something else.
You can use cm_ConfigSaveSettings - so as far as I can see cm_Exit 4 does the same as cm_ConfigSaveSettings.cm_Exit
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: solved [TC 10.52rc1] CM_EXIT 4 does not work

Post by *ghisler(Author) »

Yes, CM_EXIT 4 should do the same thing as cm_ConfigSaveSettings,cm_Exit as you wrote in your last post.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2230
Joined: 2020-01-18, 04:03 UTC

Re: solved [TC 10.52rc1] CM_EXIT 4 does not work

Post by *Fla$her »

2petermad, ghisler(Author)
Okay, thanks.
Overquoting is evil! 👎
Post Reply