批处理脚本-依次运行exe程序 [英] Batch script - Run exe program one after another

查看:205
本文介绍了批处理脚本-依次运行exe程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些EXE程序,想一次又一次地使用批处理文件运行.

I have some EXE programs,Want to run using batch file one after another.

实际上,一组包含2个带有某些参数的EXE程序.

Actually one set contains 2 EXE programs with some parameters.

Example.

@echo off  
start prog1.exe
start prog2.exe

/---wait untill prog1.exe and prog2.exe finish--/

start prog3.exe
start prog4.exe

推荐答案

要顺序运行.exe,您需要传递/wait参数以启动

To run the .exes sequentually you need to pass the /wait parameter to start

例如

@echo off  
start /wait prog1.exe
start /wait prog2.exe
start /wait prog3.exe
start /wait prog4.exe

但是,这不能并行运行start1和2.有关更复杂的用法,请参见以下问题

However that does not run start1 and 2 in parallel. For more complex use see answers to this question

这篇关于批处理脚本-依次运行exe程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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