Wait for multiple applications run asynchronously from batch file to finish
There is a simple Windows batch file that runs multiple instances of
application:
start app.exe param1
start app.exe param2
Is there a way to run them asynchronously at the same time (which above
does) and wait for them both to finish to perform other actions -
something like C#
Task.WhenAll(tasksList.ToArray());
/* Process tasksList.Result */
?
/wait switch will not help here, some polling for if particular instance
is still running maybe.
No comments:
Post a Comment