Tc re-reads configuration without restart. Possible?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Tc re-reads configuration without restart. Possible?

Post by *JOUBE »

Tc re-reads configuration without restart. Possible?

Or, to ask it another way: Does Tc not re-read the configuration at Tc /O?

Joube
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tc re-reads configuration without restart. Possible?

Post by *ghisler(Author) »

No, it doesn't re-read most configuration entries unless it is restarted. Try using the new cm_Exit command with parameters to restart:
cm_Exit
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
4: Save directories, tabs and panels (brief, full etc.) even when disabled in settings
8: Pass current left and right directory and file under cursor to new instance
16: Restart as administrator
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Tc re-reads configuration without restart. Possible?

Post by *JOUBE »

ghisler(Author) wrote: 2023-09-05, 10:37 UTC No, it doesn't re-read most configuration entries unless it is restarted. Try using the new cm_Exit command with parameters to restart:
cm_Exit
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
4: Save directories, tabs and panels (brief, full etc.) even when disabled in settings
8: Pass current left and right directory and file under cursor to new instance
16: Restart as administrator
Ah, very good. Sum of 1 + 4 + 8 works for me.

Joube
User avatar
beb
Power Member
Power Member
Posts: 580
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Tc re-reads configuration without restart. Possible?

Post by *beb »

2JOUBE
Not sure if it fits your current case, but sometimes it's also useful to combine cm_Exit with cm_ConfigSavePos (to grant the current position and size of the Total Commander window, including separator position, as well as columns width to be preserved upon restart). E.g., regarding your exit sum:

Code: Select all

cm_ConfigSavePos,cm_Exit 13
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Tc re-reads configuration without restart. Possible?

Post by *JOUBE »

beb wrote: 2023-09-05, 13:39 UTC 2JOUBE
Not sure if it fits your current case, but sometimes it's also useful to combine cm_Exit with cm_ConfigSavePos (to grant the current position and size of the Total Commander window, including separator position, as well as columns width to be preserved upon restart). E.g., regarding your exit sum:

Code: Select all

cm_ConfigSavePos,cm_Exit 13
Thanks for the hint. No, I don't need that.

I only want to change the state of MarkDirectories=1/0 in the ini and make it work. (And see the state about it in the Dirmenu, which is - other as the function itself - no problem without a restart of the Tc *), and is already done here (as many other switches for external programs also).

Joube

*) because the dirmenu is completely re-read ever time it is opend. So it can be changed from extern while the tc is running. Changes are visible immediately.
Post Reply