How to create Cmder shortcut to start a task

8

5

I created a simple task that will start the Linux subsystem, execute zsh and run it on my desktop. However I would like to create a shortcut for this specific task on my taskbar.

Reason for this is because I don't want Cmder to do that by default, I want two separate buttons - one for regular and other for Ubuntu Subsystem.

Any ideas of how to do that? I've tried "C:\Program Files\Cmder\Cmder.exe" /single /cmd {Bash:Ubuntu} but it gives error The syntax of the command is incorrect. and loads default Cmder task.

Here is how my task looks like task

sed

Posted 2016-08-10T16:50:55.170

Reputation: 268

Answers

6

Here are two options:

You can set cmder to show your tasks on the windows taskbar. In the settings check under Task bar > Add ComEmu tasks to taskbar and be sure to hit Update now!

If you still want to create the shortcut, this command seems to do the trick:

"C:\Program Files\Cmder\vendor\conemu-maximus5\ConEmu64.exe" -run {Task}

Use ConEmu64.exe or ConEmu.exe (accordingly) inside your vendor\conemu-maximus5 folder of your cmder installation.

MauricioRobayo

Posted 2016-08-10T16:50:55.170

Reputation: 161

2

The first option of previous answer, now changes to Settings - Tasks - Taskbar jump lists(checkbox) I guess? Because I don't see what he said, may be changed now; and then when you open the first shell, at right lower corner, click the green + sign, you will see your favorite task in the task list, at bottom.

When I use the second approach of @archemiro I see this error:

Unrecognized parameter:

Valid options:
/START <path>
/SINGLE <path>
/TASK <name>
/REGISTER [USER/ALL]
/UNREGISTER [USER/ALL]

Must have suffered some change during the updates of Cmder.

So I tried editing the shortcut path to be like C:\xxxx\Cmder.exe /TASK my_task and it worked. Remember that in my_task, no {} is included.

WesternGun

Posted 2016-08-10T16:50:55.170

Reputation: 300