How do I make conemu open bat files on double click?

后端 未结 3 1471
清歌不尽
清歌不尽 2021-02-04 06:56

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 DI

3条回答
  •  萌比男神i
    2021-02-04 07:32

    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.

提交回复
热议问题