I have recived this as a forum email from Rafaello
%COMMANDER_INI% that points directly to the currently used wincmd.ini - also if it is set with the /i start parameter and if it has a different name.
%COMMANDER_INI_PATH% which points to the directory where wincmd.ini (and usercme.ini) is located.
Boths parameters can only be seen from programs executed from TC, they are not visible to programs started from outside of TC.
If you load an alternative .mnu file in TC, named for example wcmd_savetabs_eng.mnu, then TC will also, besides from usercmd.ini, look for em_commands in a file with the corresponding name wcmd_savetabs_eng.ini - and that file will be looked for in the same directory as the wcmd_savetabs_eng.mnu file (usually %COMMANDER_PATH%\language).
But if you app is intended to being started at computer startup - the it wil not be able to see TC envinronment variables.
Well, TC's set these environment parameters:To execute the SaveTabs2 command, the app must find wincmd.ini and create a
usercmd.ini next to it with the SaveTabs2 parameters. In this thread, users
say that your add-ons use the changed location and name of usercmd.ini:
viewtopic.php?p=470241#p470241
How do I find the path to wincmd.ini or how do I execute SaveTabs2 without
a user-defined command?
%COMMANDER_INI% that points directly to the currently used wincmd.ini - also if it is set with the /i start parameter and if it has a different name.
%COMMANDER_INI_PATH% which points to the directory where wincmd.ini (and usercme.ini) is located.
Boths parameters can only be seen from programs executed from TC, they are not visible to programs started from outside of TC.
If you load an alternative .mnu file in TC, named for example wcmd_savetabs_eng.mnu, then TC will also, besides from usercmd.ini, look for em_commands in a file with the corresponding name wcmd_savetabs_eng.ini - and that file will be looked for in the same directory as the wcmd_savetabs_eng.mnu file (usually %COMMANDER_PATH%\language).
But if you app is intended to being started at computer startup - the it wil not be able to see TC envinronment variables.
Statistics: Posted by petermad — 2025-04-13, 23:41 UTC