使用.BAT文件打开另一个.EXE JAR文件-C#-帮助! [英] Having a .BAT file to open up another .EXE JAR file - C# - HELP!
问题描述
您好,我目前正在为我的世界服务器开发游戏服务器软件(快捷软件).
Hello, I'm currently working on a software for a game-servers(shortcut software) for a minecraft server.
我有服务器软件,当我运行它时,将不会出现一个窗口(也称为服务器界面),因此,我发现可以使用此接口来使用服务器软件.
I got the server software, when I run it a window will not appear(a.k.a Server Interface) So, I found this INTERFACE you can use to your server software.
通过单击.BAT文件以启动服务器,即可正常运行(手动)
It works PERFECTLY by clicking on a .BAT file to launch the server(by manual)
那么,我在想如何真正为此编写代码?如果我尝试绑定"C:\ Users \ Armin \ Desktop \ Bukkit \ crafty.bat",这是服务器界面的Launcher.bat文件.
So, I was thinking how to actually make a code for that? If I try to bind "C:\Users\Armin\Desktop\Bukkit\crafty.bat" this is the Launcher.bat file for the server interface.
如果我将该代码绑定到按钮,它将无法正常工作....它只是作为错误可能找不到文件"出现
If I bind that code to a button, it doesnt work.... It just comes up as an "ERROR COULD NOT FIND FILE"
但是如果我手动找到该文件并双击它,它就可以工作....
but it works if I manually find the file and double click on it....
有什么建议吗?
希望您能理解!
此致
Armin Pasalic.
Armin Pasalic.
推荐答案
凹凸....
这篇关于使用.BAT文件打开另一个.EXE JAR文件-C#-帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!