同时启动多个批处理文件
我正在开发一个使用 Torque Engine 1.2 的项目(大部分无关紧要,但无论如何......)
我有一个批处理文件,我想在其中运行我的“主服务器”和“专用”服务器。我可以有两个单独的批处理文件分别运行,但我宁愿只从一个批处理文件开始。我尝试过使用“调用”,但这会运行第一个服务器(主服务器),并在关闭该服务器时,然后启动专用服务器。我需要从一个文件同时运行两者。首先我想,这可能吗?如果是这样,我该怎么做?下面是我需要从一个文件同时运行的两行代码。
call "Project.exe" -dedicated -master -mission levels\Mountains.mis
启动
call "Project.exe" -dedicated -mission levels\GrimwoodPass.mis
服务器会打开另一个批处理/服务器窗口,我可以在其中输入命令等。这可能是我不能同时启动两个的原因吗?
I am working on a project using the Torque Engine 1.2 (mostly irrelevant but anyway...)
I have a batch file, in which I want to run my 'master server' and my 'dedicated' server. I can have two seperate batch files running each seperately, however I'd much rather just do it from one. I have tried using 'call' but this runs the first server (master) and on closing this server, THEN it starts the dedicated one. I need both to be run at the same time from one file. First I guess, is this possible? If so, how do I go about doing so? Below are the two lines of code I need to run, from one file and at the same time.
call "Project.exe" -dedicated -master -mission levels\Mountains.mis
and
call "Project.exe" -dedicated -mission levels\GrimwoodPass.mis
Starting a server opens another batch/server window in which I can enter commands and such. Could this be the reason I can't have two started at once?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
start
而不是call
。例如:
启动命令的第一个参数是窗口标题。
Use
start
instead ofcall
.E.g.:
The first parameter to the start command is the window title.