Thread when starting a process
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
6 Replies
like it creates a new process under the original process
how can i avoid that
You're looking for a service worker, probably
nvm fixed it, i used process.StartInfo.UseShellExecute = true;
Ah, duh, my bad
I thought you're trying to create a separate task from the same code, completely missed that you're running something else. Makes sense
well, i am technically running the same exe
(so that would be a detached process)