Why two files for user commands?

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Why two files for user commands?

Post 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?
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post 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
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post 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.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post 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 :lol:
User avatar
AbteriX
Junior Member
Junior Member
Posts: 36
Joined: 2006-03-12, 20:10 UTC
Location: Old Europe

Post 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 8)


# # #
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
Abterix
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post 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)
User avatar
AbteriX
Junior Member
Junior Member
Posts: 36
Joined: 2006-03-12, 20:10 UTC
Location: Old Europe

Post 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?
Abterix
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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.
Author of Total Commander
https://www.ghisler.com
Post Reply