1

I have the following run.cmd file. This runs 2 scripts (a webserver and a watch script) and opens a new console. All good.

How can I run all these scripts to be opened in a "new window" conemu interface? For example: if I run this run.cmd 3 times, I should have 3 conemu windows with 3 tabs each

//how to open first a "new conemu" window here? and then run the scripts in this new window?
start server.run.cmd -new_console:s
start watch.cmd -new_console:s
start cmd -new_console

1 Answer 1

0

You should run ConEmu64.exe -NoSingle.

https://conemu.github.io/en/ConEmuArgs.html

For example, you may do something like

if "%~1" == "-new_window" goto do_run
start ConEmu64.exe -NoSingle -run "%~0" -new_window
goto :EOF
:do_run
ConEmuC /async /c server.run.cmd
cmd /c watch.cmd -new_console:s
cmd /c cmd -new_console
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.