I have about 80 batch files. Each one kicks off a copy of data from one machine 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?