[Feature Requesst] Add a command `cm_ReloadSettings`
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 14
- Joined: 2021-04-30, 14:14 UTC
[Feature Requesst] Add a command `cm_ReloadSettings`
For someone who likes to modify the settings file directly, it is a boring thing to close and reopen TC. So it would be great if there is a command `cm_ReloadSettings`.
Re: [Feature Requesst] Add a command `cm_ReloadSettings`
Support++
Such a command would be a little more convenient than starting another instance to see if the setting change was as expected.
Such a command would be a little more convenient than starting another instance to see if the setting change was as expected.
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [Feature Requesst] Add a command `cm_ReloadSettings`
It would be very difficult because not all options are loaded in the same place, some are only loaded when using a specific tool like Search or Lister. Just use a tool like tinny(?)/tiny TC restarter:
http://totalcmd.net/plugring/tinnytcrestarter.html
http://totalcmd.net/plugring/tinnytcrestarter.html
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [Feature Requesst] Add a command `cm_ReloadSettings`
2Troy_Daniel
I use these two commands to restart TC in the same place as it where, even when auto-save of Directories ase disabled:
Using this command you will lose opened Folder tabs, current Sort order and File spec. etc. if auto-save of Panels is turned off.
I use these two commands to restart TC in the same place as it where, even when auto-save of Directories ase disabled:
Code: Select all
[em_newcommander]
cmd=%COMMANDER_EXE% /N /P /A /i="%COMMANDER_INI%"
param=%Z%X %P%N* %T%M*
menu=Open New Instance of Total Commander
button=%COMMANDER_EXE%
Code: Select all
[em_restartcommander]
cmd=em_newcommander, cm_Exit
button=%COMMANDER_EXE%
menu=Restart Total Commander
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 14
- Joined: 2021-04-30, 14:14 UTC
Re: [Feature Requesst] Add a command `cm_ReloadSettings`
I originally hope to reload the options in `wincmd.ini` and `usercmd.ini` as well as the related redirected options. But here, as suggested by
, I think it a good solution. And with some commands added as
Code: Select all
[em_RestartCommander]
cmd=cm_ConfigSavePos, cm_ConfigSaveSettings, cm_ConfigSaveDirHistory, em_NewCommander, cm_Exit
button=%COMMANDER_EXE%
menu=Restart Total Commander
Re: [Feature Requesst] Add a command `cm_ReloadSettings`
I have found that if I use:
Instead of:
The instance number in TC's title is kept the same, while the second method toggles the instance number back and forth each time the command is run.
Code: Select all
[em_newcommander]
cmd=%COMSPEC% /C
param=%Z%X start "" "%%COMMANDER_EXE%%" /N /P /A /i="%%COMMANDER_INI%%" %P%N* %T%M*
menu=Open New Instance of Total Commander
button=%COMMANDER_EXE%
Code: Select all
[em_newcommander]
cmd=%COMMANDER_EXE% /N /P /A /i="%COMMANDER_INI%"
param=%Z%X %P%N* %T%M*
menu=Open New Instance of Total Commander
button=%COMMANDER_EXE%
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar