Running a process in the background and keeping track of it?

Hello, I'm trying to create a gui to control several streams of audio, to run the stream i simply do ezstream.exe -c config.xml and it runs a console window that stays open doing the stream, what i'm trying to achieve is doing a gui in visual studio with that has the ability to run the command in the background and keep track if it's still open, the reason i need it this way is because I'm going to have to run about 40-60 streams at once and 60 consoles open at once isn't something i want, what would be the best way to achieve this?, what class can i use that starts the command on the background and fires events if the command crashes or closes? thank you. i apologize if this is the wrong subreddit.

by shif via /r/csharp

Leave a Reply