18

I have a home-server where I run a Development minecraft server, and have moved to conemu as a CMD replacement, Exept each time I want to start the server I need to CD to the DIR & run the start.bat. Is there a way I could create a shortcut to just double click to start the start.bat in conemu?

GodsDead
  • 325
  • 1
  • 3
  • 11

3 Answers3

24

Command line for the shortcut:

"C:\Program Files\Far Manager\ConEmu.exe" /cmd "\path\to\start.bat"

Or you could associate opening any batch file with ConEmu by modifying Windows registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\batfile\shell\open\command]
@="\"C:\\Program Files\\Far Manager\\ConEmu.exe\" /cmd \"%1\" %*"

Modify ConEmu paths to match your install location.

Tauno Siitam
  • 485
  • 4
  • 12
13

Strange but I post similar question! No need updating registry, one of members posted an easier way:

Running bat file easier way

We simply need selecting:

Force ConEmu as default termimal for console application

user5029
  • 143
  • 1
  • 4
2

More up to date version (for 64 bit OS) with flag to reuse the existing ConEmu instance and open a new tab:

"C:\Program Files\ConEmu\ConEmu64.exe" "-Reuse" "/cmd" "%1 %*"
andyhasit
  • 14,137
  • 7
  • 49
  • 51
  • Shouldn't last argument be outside the doublequotes? like this "C:\Program Files\ConEmuPack\ConEmu64.exe" "-Reuse" "/cmd" "%1" %* The default was "%1" %* – qwebek Feb 15 '16 at 15:12