Run program with different methods in loops
Posted: 15 May 2021 01:45
Hello,
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:
What I do now is I wait for the last method to end and then I run the .bat again - so there are a few hours where the other 2 methods don't run as they should, but I can't go every 2 hours go restart each one manually.
Is there a way to run each in loop when each of them finishes? Will I need separate .bat files for each method?
Thanks
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