I have a program that needs 3 methods to run in parallel.

Each method takes different time to finish, and then the command line closes. But I need each method to restart after it finishes

Right now I do something like that in my .bat file:

Code: Select all

```
cd C:\ProgramFolder\
START program -m method1 //takes 8 hours to finish then the CMD window closes
START program -m method2 //takes 10 hours to finish then the CMD window closes
START program -m method3 //takes 12 hours to finish then the CMD window closes
```

Is there a way to run each in loop when each of them finishes? Will I need separate .bat files for each method?

Thanks