Tc re-reads configuration without restart. Possible?
Or, to ask it another way: Does Tc not re-read the configuration at Tc /O?
Joube
Tc re-reads configuration without restart. Possible?
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Tc re-reads configuration without restart. Possible?
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
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
https://www.ghisler.com
Re: Tc re-reads configuration without restart. Possible?
Ah, very good. Sum of 1 + 4 + 8 works for me.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
Joube
Re: Tc re-reads configuration without restart. Possible?
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:
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
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Re: Tc re-reads configuration without restart. Possible?
Thanks for the hint. No, I don't need that.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
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.