Page 1 of 1
Why two files for user commands?
Posted: 2006-11-07, 13:48 UTC
by ts4242
it is definitely a good reason for providing two files (usercmd.ini and wcmd_eng.ini) but i cannot get it
the two files has the same structure and purpose so why not only usercmd.ini?
Posted: 2006-11-07, 14:16 UTC
by StickyNomad
2ts4242
As far as I got it, this was introduced to have two possibilities:
1. create a separate usercmd.ini for general use and to keep the em_ commands in a separate 'module'
2. If a user likes to save its commands along with his custom menu, he can insert them into wcmd_xxx.ini as well
Posted: 2006-11-07, 14:20 UTC
by Lefteous
Of course commands stored in usercmd.ini can also be used in a menu but it's easier to distribute a menu containg user commands when these user commands are stored in a separate commands file.
Posted: 2006-11-07, 14:41 UTC
by ts4242
Lefteous wrote:it's easier to distribute a menu containg user commands when these user commands are stored in a separate commands file.
Why distrbuting a menu containg user commands? these command usually launch an external program so it will be useful only for the user who create them
beside that if two commands with the same name are present in both usercmd.ini and wcmd_eng.ini, the command in usercmd.ini has high priority so distributing wcmd_eng.ini has no sense

Posted: 2006-11-07, 15:19 UTC
by AbteriX
ts4242 wrote:...
Why distrbuting a menu containg user commands? these command usually launch an external program so it will be useful only for the user who create them
So maybe take a look on
petermad's
Alternative English Interface 7.0 beta1 at
http://www.totalcmd.net/plugring/TcMenu_en_7.html
He have made an "Windows XP" section in the menu
which can load all system tools on your system.
The commands for this matter are stored in an INI
whose name belongs to the name of hes menu-file:
WCMD_ENG2.MNU
WCMD_ENG2.INI
Or should he have modify your usercmd.ini
# # #
BTW
where can i find info's about the syntax of this INIs ?
[em_write]
cmd=write.exe
menu=WordPad
button=write.exe
* cmd= is for .... ?
* menu= is for... ?
* button= is for... ?
The name in the menu is given by
MENUITEM "NAME", em_write anyway.
THX
Posted: 2006-11-07, 16:00 UTC
by ts4242
@
AbteriX
Thanks, but programs in petermad's menu are exist in any computer. about myself i prefer to distribute
WCMD_ENG1.INI as usercmd.ini with a little tip to the user to copy and paste its contents to his own file.
where can i find info's about the syntax of this INIs ?
[em_write]
cmd=write.exe
menu=WordPad
button=write.exe
* cmd= is for .... ?
* menu= is for... ?
* button= is for... ?
cmd= is for command to be executed
menu= is for the menu caption (title)
button= is for the icon file to be used (if you assigned this command to a buttonbar)
Posted: 2006-11-07, 16:20 UTC
by AbteriX
ts4242 wrote:@AbteriX
cmd= is for command to be executed
menu= is for the menu caption (title)
button= is for the icon file to be used (if you assigned this command to a buttonbar)
Thanks, i have asked the wrong question.
Where / How can we use this ?
For CMD= i see an use in menu.
But MENU= and BUTTON= for buttonbar ??? This is stored in *.bar-files ?
Should i wait for the full version of 7.0 and the help?
Posted: 2006-11-07, 17:11 UTC
by ghisler(Author)
But MENU= and BUTTON= for buttonbar ??? This is stored in *.bar-files ?
This is used only when a user adds the command to the button bar - the command settings are _copied_ to the button bar fields, so the user can change them.