One button two commands - how to create

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
dmocha
Junior Member
Junior Member
Posts: 52
Joined: 2013-05-05, 19:09 UTC
Location: Poland

One button two commands - how to create

Post by *dmocha »

How to create a button that will immediately cause the two commands:
first:

Code: Select all

%commander_drive%\Everythingx64\Everything.exe
and second:

Code: Select all

command: cd
parameter: \\\FSE\
regards
dmocha
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7024
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Let Everything run as a service.
You don't need Admin rights and you can simply start the FSE plugin.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

multiple commands button bar

Post by *Stefan2 »

You can add your commands into the usercmd.ini

[em_one]
command: %commander_drive%\Everythingx64\Everything.exe

[em_two]
command: cd \\\FSE\


and use this as button command: em_one, em_two




More at http://ghisler.ch/board/viewtopic.php?p=287794#287794


 
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Without the space between: em_one,em_two
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

ZoSTeR wrote:Without the space between: em_one,em_two
Really? Why?

I had tested it before:

Code: Select all

TOTALCMD#BAR#DATA
cm_About,   cm_HelpIndex  ,   cm_FtpConnect

\ToCo8\WCMICONS.DLL,7
ping test


-1

And it worked. TC 8.50.
 
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Have you tried it with em_ commands? Using a space gives me a "file not found" error.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

ZoSTeR wrote:Have you tried it with em_ commands? Using a space gives me a "file not found" error.
No. Yes, you're right.




I didn't had the need for multiple em_cmd, but now I tried:

\usercmd.ini

Code: Select all

[em_usercmd234]
cmd=cmd /k 
[em_usercmd235]
cmd=explorer
Button works:

Code: Select all

CMD: em_usercmd234,em_usercmd235
PARA:
ICON: WCMICONS.DLL
Tooltip: Button bar multiple commands TEST EM_cmds


Button fails:
CMD: em_usercmd234, em_usercmd235


---------------------------
Total Commander
---------------------------
File not found!
---------------------------
OK
---------------------------



But CM_cmds works with space:
cm_About,     cm_HelpIndex   ,     cm_FtpConnect

EM_cmds not.

Over to Christian.

 
Post Reply