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.
Loading

Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 29, 2013, 6:58 PM EDT
foreach (Process proc in Process.GetProcessesByName("ollydbg"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}
thiago costaRank #6,113 · 276 reputationPosted Aug 29, 2013, 7:22 PM EDT
foreach (Process proc in Process.GetProcessesByName("ollydbg"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}
I tried the code above, It didnt work.
:'(
Ramesh MaruthiRank #937 · 2.2K reputationPosted Aug 29, 2013, 8:13 PM EDT
{
if(proc.ProcessName.Contains("olly"))
proc.Kill();
}
try this dude....
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 29, 2013, 10:03 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted Aug 29, 2013, 10:09 PM EDT
foreach (Process proc in Process.GetProcessesByName("olly"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}
VulpesRank #55 · 29.2K reputationPosted Aug 30, 2013, 12:27 AM EDT
foreach (Process proc in Process.GetProcesses())
{
if(proc.ProcessName.Contains("olly"))
proc.Kill();
}