开发者

list of batch files to execute

开发者 https://www.devze.com 2023-01-05 06:51 出处:网络
I have about 80 batch files. Each one kicks off a copy of data from one mac开发者_开发百科hine to another. I would like to maintain 5 simultaneous batch files executing. So I need to start 5 at once a

I have about 80 batch files. Each one kicks off a copy of data from one mac开发者_开发百科hine to another. I would like to maintain 5 simultaneous batch files executing. So I need to start 5 at once and when one finishes it kicks off the next one from a list. The key thing here is "from a list" i.e. I don't want to hard code the sequence as that might result in one of the 5 starters finishing while the others still have work to do. I want the early finisher to pick up the next job from the list.

What's the best way to do that?


I have once answered a similar question here.

Iterating over a sequence should be fairly trivial if you have it either as a list in a single environment variable or a list in multiple environment variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消