V
V
vovkaooo12017-03-05 11:53:59
C++ / C#
vovkaooo1, 2017-03-05 11:53:59

How to kill a process?

Hello, there is one process let's call it firefox and I need to close it after some work. How can I do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
15432, 2017-03-05
@vovkaooo1

foreach (var process in Process.GetProcessesByName("firefox"))
{
process.Kill();
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question