Reload ini files without restart TC

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Reload ini files without restart TC

Post by *Mikefield »

I'm sure it was requested and discussed in the old 7.0 beta time, but I didn't found it,
and I have no notice about the result. So I suggest here again:
Please add the function in TC to reload the ini files after manual changes on these.
This solves the behavior to restart the TC every time after small changes on the ini files.

mf
Bankster - Word of the Year 2009
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Support++

I would also like to see support added for reloading plugins, too.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

I'm sure it was requested and discussed in the old 7.0 beta time, but I didn't found it,
TC(English): Reload wincmd.ini?
.. support added for reloading plugins ..
cm_UnloadPlugins ?

Regards
Holger
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Yes, but it would be nicer to have an internal command for the restart.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Oh YES !

Post by *Clo »

2Boofo

:) Hi Bob !
Yes, but it would be nicer to have an internal command for the restart.
• Of course, I agree and support that way to solve the issue !

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Thanks Clo! ;)

<OT>Happy belated birthday, my friend!</OT>
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

2HolgerK Thanks for clarifying it and post the link.
Now I made my first expiriences with em_usercmd and I got it to work with ReloadTC.

2Claude Thanks to support it! :)

mf
Bankster - Word of the Year 2009
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Care to share how you did it? ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Of course! I add it as a seperate button in the main menu -> configuration.
But you can also add it to the button bar.

1st edit the usercmd.ini and add following entry (the directories are dependend from your installation):

Code: Select all

[em_usercmd609]
menu=Restart TC
cmd=ReloadTC.exe
button=D:\Util\Viewer\WinCmd\Plugins\Util\ReloadTC\ReloadTC.exe
path=%COMMANDER_PATH%\Plugins\Util\ReloadTC
2nd Edit your used menu file i.e. WCMD_ENG.MNU and add following in the Configuration section:

Code: Select all

    MENUITEM SEPARATOR
    MENUITEM "Restart TC", em_usercmd609

Now, restart TC.

If you want, you can add it to the button bar, then skip 2nd. In button bar you can also show
the icon, in the menu it isn't shown. See also here.
You have to add a new button, then select the loupe on the end of the command line
and then go down on the left side of the new window and select the usercmd.ini.
Then you will find the commands are in it. Select it, press OK, and then it's working.

It's harder to describe it as it to do. :)
Hint: For 2nd you can use the Main Menu Editor from the Ultra TC Editors.

mf
Bankster - Word of the Year 2009
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I already had it in the button bar, but I went the long route for that. This is much easier. I didn't have a usercmd.ini file before now, it seems.

How do you figure out which identifier to use (the 609)? And where would be the best place to add it in the menu? I use Pertermad's Extended Menu set.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

The 609 is only a phantom number you can use any number you want, i.e 501 if you like these jeans. :)
For me it's the 6th menu and the 9th entry in it. I'm an Prussian and all must have his accurateness. lol
As I have a button to edit the wincmd.ini also in the configuration section, so it make sence to place the
restart button there too.

Code: Select all

[em_usercmd603]
Menu=wincmd.ini editieren 
cmd=Notepad.exe %COMMANDER_INI%
button=D:\Util\Viewer\WinCmd\WCMICONS.DLL,28
I didn't use the extended menu set, it's to overloaded for me.


mf
Bankster - Word of the Year 2009
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I ended up putting it in the Help menu as the last item. What is the 6th menu and 8th item for you then? What range of numbers can we use and not screw anything else up?

And thank you for all the help. This is slick! ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

The 6th menu is the coniguration menu:
1st Files
2nd Mark
3rd Commands
4th Net
5th Show
6th Configuration
7th Start
8th Help

The 8th Item is the Separator:

Code: Select all

POPUP "&Konfigurieren"
  MENUITEM "&Einstellungen...", cm_config
  MENUITEM "B&uttonbar ändern...", cm_ButtonConfig
  MENUITEM "&Wincmd.ini editieren", em_usercmd603
  MENUITEM "&Usercmd.ini editieren", em_usercmd604
  MENUITEM "Einstellungs&dateien direkt ändern...", 581
  MENUITEM "P&osition speichern", cm_configSavepos
  MENUITEM "Einstellungen &speichern", 580
  MENUITEM SEPARATOR
  MENUITEM "Restart TC", em_usercmd609
END_POPUP
mf
Bankster - Word of the Year 2009
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

So, you have that as a separate drop down then?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Not really, it's an addition to the standard configuration menu, please have a look.

mf
Last edited by Mikefield on 2009-05-17, 20:08 UTC, edited 1 time in total.
Bankster - Word of the Year 2009
Post Reply