从单个批处理文件运行多个批处理文件 [英] Running multiple batch files from a single batch file

查看:136
本文介绍了从单个批处理文件运行多个批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须通过一个批处理文件执行两个批处理文件.一个批处理文件具有用于启动服务器应用程序的命令,另一个是客户端应用程序.因此,条件是服务器启动后,客户端才可以尝试访问服务器.

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

这篇关于从单个批处理文件运行多个批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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