6
Answers

How to kill process if processname contains sting.

Photo of thiago costa

thiago costa

11y
2.8k
1
This is my current code.

foreach (Process proc in Process.GetProcessesByName("ollydbg")){proc.Kill();}


How is it possible for me to kill all process that CONTAIN "olly" ...

So for example, contains "note" would kill notepad, notebook, notepad++, etc etc
Example 2, contains "olly" would kill, ollydbg, ollyplugin, etc etc.

In another words, I want to kill all processes IF what ever I specify, contains in process.name

Thanks guys.

Answers (6)

Next Recommended Forum