问题描述
我正在使用Torque Engine 1.2进行项目(大多数情况下无关紧要,但无论如何...)
I am working on a project using the Torque Engine 1.2 (mostly irrelevant but anyway...)
我有一个批处理文件,我想在其中运行主服务器"和专用"服务器.我可以有两个单独的批处理文件,每个文件分别运行,但是id更大,而只是从一个文件中执行.我尝试使用呼叫",但是它将运行第一个服务器(主服务器),并在关闭该服务器时,然后启动专用服务器.我需要从一个文件中同时运行两个文件.首先,我想这可能吗?如果是这样,我该如何去做.下面是我需要从一个文件中同时运行的两行代码.
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 seperatly however id much rather just do it from one. I have tryed 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 is 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
和
call "Project.exe" -dedicated -mission levels\GrimwoodPass.mis
P.S启动服务器会打开另一个批处理/服务器窗口,我可以在其中输入命令等.这可能是我不能一次开始两个比赛的原因吗?只是一个想法.
P.S starting a server opens another batch/server window in which i can enter commands and such. Could this be the reason i cant have two started at once? Just a thought.
推荐答案
使用start
代替call
.
例如:
start "" "Project.exe" -dedicated -master -mission levels\Mountains.mis
启动命令的第一个参数是窗口标题.
The first parameter to the start command is the window title.
这篇关于同时启动多个批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!