You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何避免ConEmuC的“Root process was alive less than 10 sec”提示并自动关闭控制台

Fix ConEmu's "Root process was alive less than 10 sec" Prompt

Got it, let’s get rid of that annoying prompt that pops up when your command finishes quickly in ConEmu. Here are a few straightforward ways to make the console close automatically:

1. Adjust Global ConEmu Settings (Applies to All Commands)

This is the easiest way if you want to disable the quick-exit warning entirely:

  • Open ConEmu's settings (press Win+Alt+P, or click the gear icon on the title bar)
  • Use the search bar at the top to look for "Close confirmation" (or navigate to Features > Confirm close)
  • Uncheck the box next to "Warn if root process exited quickly (less than N sec)" — you can also lower the time threshold to 0 if you still want the warning for longer-running processes but not instant ones
  • Hit Save settings to apply the change

2. Add a Command-Line Parameter for Specific Tasks

If you only want this behavior for your start cmdn command (and not mess with global settings), modify your command to include ConEmu's window control flag:

start cmdn -cur_console:close

The -cur_console:close flag tells ConEmu to automatically close the window as soon as the root process finishes, no matter how short it ran. You can also specify the working directory directly in the command if needed:

start cmdn -new_console:d:D:\Projects.sc -cur_console:close

3. Configure Task Exit Behavior (If Using ConEmu Tasks)

If you’ve set this up as a saved ConEmu task:

  • Open ConEmu settings and go to Tasks
  • Select your task from the list
  • Under the Advanced section (expand it if hidden), find the On close dropdown
  • Choose "Close window immediately" from the options
  • Save your task settings

That’s it! Any of these methods should stop that prompt from appearing and let your console close automatically once your command finishes.

内容的提问来源于stack exchange,提问作者klodoma

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 10:21:22