如何双击conemu打开bat文件? [英] How do I make conemu open bat files on double click?

查看:624
本文介绍了如何双击conemu打开bat文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个家庭服务器,我运行一个开发的Minecraft服务器,并已移动到conemu作为CMD替换,Exept每次我想启动服务器,我需要CD到DIR&运行start.bat。
有一种方法我可以创建一个快捷方式,只需双击启动conemu中的start.bat。

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?

推荐答案

命令行的快捷方式:

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

或者可以关联打开任何批处理文件使用ConEmu修改Windows注册表:

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\" %*"

修改ConEmu路径以符合您的安装位置。

Modify ConEmu paths to match your install location.

这篇关于如何双击conemu打开bat文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆