Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to kill process in C#?
Can someone provide a piece of code to kill a process by name. Oh, and what I mean by this is that the code is going to kill the process every time it opens, not only once.
4 Answers
- ?Lv 76 years ago
You want to be EXTREMELY CAREFUL with that method. You might trigger your own or worse someone elses VIRUS alert.
Code to kill processes is often found in viruses, and tagged as such by many vendors who make antivirus software, so be aware you might have to check it against a multiscanner checker, nothing quicker to destroy an app and even the website than a false positive.
- AJLv 76 years ago
define process? are you talking a function? or the entire application, which is Environment.Exit(0)