C#C
C#2y ago
natxnek

Thread when starting a process

            System.Diagnostics.Process process = new System.Diagnostics.Process();
            process.StartInfo.FileName = "discordbotloader.exe";
            process.StartInfo.Arguments = "-bot";
            process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
            process.Start();
            process.WaitForExit();


is there a way to make that process run in the background when i close the application that started the process? if i close the main console app, it also closes the new process
Was this page helpful?