Posted on 2004-10-06
I have developed a console application that launches a variety of other applications using System.Diagnostics.Process.Start to initiate the process, such as:
Dim myProcess As Process = System.Diagnostics.Process.Start("e:\\app1\\setup.exe")
For most of the applications it launches, this works fine. However, other applications do not run until immediately after I close the console window. (It will hang indefinitely if I leave it open.) This is not acceptable because, depending on the input given to the program, I may need to spawn other processes before terminating the console app. How can I fix the Process.Start call so these other pesky apps will launch without having to first close the console window?
Thanks in advance for your help.