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?
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