【问题标题】:conemu - start multiple commands in new windowconemu - 在新窗口中启动多个命令
【发布时间】:2019-06-11 06:54:29
【问题描述】:

我有以下 run.cmd 文件。这会运行 2 个脚本(一个网络服务器和一个监视脚本)并打开一个新控制台。都好。

如何运行所有这些脚本以在“新窗口”conemu 界面中打开? 例如:如果我运行这个 run.cmd 3 次,我应该有 3 个锥形窗口,每个窗口有 3 个选项卡

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

【问题讨论】:

    标签: conemu


    【解决方案1】:

    你应该运行ConEmu64.exe -NoSingle

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

    例如,你可以做类似的事情

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-25
      • 2023-03-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多