Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ConEmuC: Root process was alive less than 10 sec, ExitCode=0

Tags:

conemu

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?

like image 270
igbgotiz Avatar asked Jun 04 '15 02:06

igbgotiz


2 Answers

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
like image 137
Maximus Avatar answered Nov 11 '22 19:11

Maximus


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

like image 40
fazermokeur Avatar answered Nov 11 '22 20:11

fazermokeur