Hi:
I have a loop that spawn new process to run some ".exe" files. And I capture the output of those ".exe" files to my textbox. In order to capture the outputs right away, I can't use process.waitforexit() method. The problem I have right now is if the previous process took a long time to run, a second process will run regardless if the previous one finished or not. This messed up my outputs.
Is there a way for me to insert the processes into a queue structure so it can be run in a sequential order?
Thanks