Quote:
Originally Posted by
roxaz
Process class has nice static method that returns array of all running processes. loop through it while you find your process and then you can .Kill() it or something like that. I remember it has method for this ;]
Process myprocess;
myprocess = Process.Start(working directory and filename);
myprocess.CloseMainWindow();
myprocess.Close();
myprocess.WaitForExit();
It looks like that.
But have many lines of code each one of the start/stop buttons
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (5 Days Ago); точное время не сохранилось. Открыть источник.