6

I was trying to create a shortcut on my Windows desktop to ConEmu64.exe that launches with a script I wrote called "MyStartUpScript.cmd".

In Target field of the Windows shortcut, I have:

"C:\Program Files\ConEmu\ConEmu64.exe" /cmd path/to/MyStartUpScript.cmd

However, this does not work. Specifically, it launches a new instance of ConEmu, runs my script, but then it says "ConEmuC: Root process was alive less than 10 sec, ExitCode=0"

What is going on?

igbgotiz
  • 892
  • 1
  • 8
  • 28

2 Answers2

7

First. Learn about cmd.exe switches. When you run your "startup script" that way you tell cmd.exe to execute your script and immediately exit. I doubt it was your intention.

cmd /? would give you an answer.

"C:\Program Files\ConEmu\ConEmu64.exe" /cmd cmd.exe /k path/to/MyStartUpScript.cmd
Maximus
  • 10,751
  • 8
  • 47
  • 65
1

It seems that open conEmu with admin rights solve the problem (right click -> "run as adminsitrator").

  • 2
    I found run as admin worked for me too. But I also found this to work: C:\Dropbox\Scripts\Bash\myConEmuScript.cmd -cur_console:n – Northstrider Feb 04 '17 at 15:44