I need to start a process from a C# console app and then allow the console app to finish/end without waiting for the process/thread to finish.
How do I do this?
You need to avoid making your new process a child process of the current process:
ProcessStartInfo sinfo = new ProcessStartInfo();
sinfo.UseShellExecute = true; // Do not wait - make the process stand alone
sinfo.FileName = "PathAndNameofExe";
Process.Start(sinfo);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With