How do I execute some tasks in parallel in batch script and wait for them?
command1; # command3, command4 and command5 should execute in sequence say task1
I think this is the simplest way to do that:
command1 ( start "task1" cmd /C "command3 & command4 & command5" start "task2" cmd /C "command6 & command7 & command8" ) | pause command9
Further details in the comments below this answer.