简体   繁体   English

从一个主批处理中运行多个批处理文件

[英]Run multiple batch files from one master batch

I have multiple batch files. 我有多个批处理文件。 Each batch file opens an exe file and run a command. 每个批处理文件都会打开一个exe文件并运行命令。 The command compiles the results in csv format. 该命令以csv格式编译结果。 This all works like heaven. 这一切都像天堂一样。

I am trying to create a master batch which could run each of the batch file one by one. 我正在尝试创建一个可以逐个运行每个批处理文件的母版。 The individual batch file names are as 1.bat, 2.bat . 各个批处理文件的名称分别为1.bat和2.bat。 . . .32.bat .32.bat

I tried, 我试过了,

Call 1.bat
Call 2.bat
.
.
.
Call 32.bat

but it is only running the first command... 但是它只运行第一个命令...

I also tried without call, same result. 我也试过不打电话,同样的结果。

I am using the following code in each batch file: 我在每个批处理文件中使用以下代码:

Start /D "C:\\test 2\\" CSC.exe "1.lq"

Start /D "C:\\test 2\\" CSC.exe "2.lq"

and so on 等等

Can anyone help me crack this? 谁能帮我解决这个问题?

All I want My master bat to run first batch, on completion run second and so on so forth. 我只希望我的高手蝙蝠第一批运行,完成后第二批运行,依此类推。

Hope it makes sense. 希望有道理。

I really appreciate your help on this guys. 非常感谢您在这方面的帮助。

Shei 她我

Try like this:- 尝试这样:-

START /WAIT  batch1.bat
START /WAIT batch2.bat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM