我必须通过一个批处理文件执行两个批处理文件.一个批处理文件具有用于启动服务器应用程序的命令,另一个是客户端应用程序.因此,条件是服务器启动后,客户端才可以尝试访问服务器.
I have to execute two batch files through a single batch file. One batch file has a command for starting a server application and other is a client application. so the condition is that once the server is up, only then client should try to hit server.
我已经尝试过以下事情,
I have tried following thing,
parent.bat具有以下内容
parent.bat has a following content
启动server.bat
start server.bat
启动client.bat
start client.bat
发现两个应用程序正在单独运行,但是无法达到应有的顺序.
and found that both applications are running separately but could not achieve the order in which it should be.
推荐答案您尝试过
CALL test.bat这将停止执行父脚本,直到子脚本完成为止.
This stops the execution of the parent script until the child finishes.
在研究问题上要多一些结果. 我第一次在Google上搜索批处理脚本执行",结果是: 如何从批处理中运行批处理脚本脚本
And be a bit more consequent in research issues. My first google search for "Batch await script execution" brought up this: how to run a batch script from within a batch script
更多推荐
从单个批处理文件运行多个批处理文件
发布评论