从单个批处理文件运行多个批处理文件

编程入门 行业动态 更新时间:2024-10-26 07:33:47
本文介绍了从单个批处理文件运行多个批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

更多推荐

从单个批处理文件运行多个批处理文件

本文发布于:2023-05-27 19:33:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/300573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:批处理文件   多个

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!