按顺序执行批处理指令

时间:2013-05-28 19:27:59

标签: windows batch-file batch-processing

我的批处理文件(.bat)有问题。它有以下几行:

start /d "\\Pcaldatp01\myroute" App1.exe

start /d "\\Pcaldatp01\myroute" App2.exe

start /d "\\Pcaldatp01\myroute" App3.exe

start /d "\\Pcaldatp01\myroute" App1.xlsm

但是所有这些都在同一时间执行,我希望每个应用程序在前一个应用程序结束后按顺序执行 怎么做?

1 个答案:

答案 0 :(得分:1)

start "" /wait /d "\\Pcaldatp01\myroute" App1.exe
start "" /wait /d "\\Pcaldatp01\myroute" App2.exe
start "" /wait /d "\\Pcaldatp01\myroute" App3.exe
start "" /wait /d "\\Pcaldatp01\myroute" App1.xlsm