
Contents
- 修正前
- レジストリ修正
修正前
先月、ConEmu例えば ↓ こんな
@echo ConEmu Batfile Test
でもバッチを
ConEmuC: Root process was alive less than 10 sec, ExitCode=0. Press Enter or Esc to close console...

こう動作する理由はドキュメントの
»
Q. What is the purpose of the 'Press Enter to close console...' confirmation displayed after all commands finished executing? A. If the console would close automatically, you would not see neither the results of the executed command, nor any error messages. Q. How to disable 'Press Enter to close console...'? A. The confirmation is disabled automatically, if: the root console command runs for more than 10 seconds, or Far Manager is the root process, and the ConEmu plugin is loaded. A. Add the parameter -new_console:n to the launched command.
レジストリ修正
対策が分かったので、ConEmu最初、拡張子
[HKEY_CLASSES_ROOT\.bat] @="batfile"

次に
[HKEY_CLASSES_ROOT\batfile\shell\open\command] [.....]\ConEmu.exe /cmd "%1" %* -new_console:n


修正結果は