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
VulpesPosted Aug 30, 2013, 4:27 AM
foreach (Process proc in Process.GetProcesses())
{
if(proc.ProcessName.Contains("olly"))
proc.Kill();
}
Nitesh KejriwalPosted Aug 30, 2013, 2:09 AM
foreach (Process proc in Process.GetProcessesByName("olly"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}
Nitesh KejriwalPosted Aug 30, 2013, 2:03 AM
Ramesh MaruthiPosted Aug 30, 2013, 12:13 AM
{
if(proc.ProcessName.Contains("olly"))
proc.Kill();
}
try this dude....
thiago costaPosted Aug 29, 2013, 11:22 PM
foreach (Process proc in Process.GetProcessesByName("ollydbg"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}
I tried the code above, It didnt work.
:'(
Nitesh KejriwalPosted Aug 29, 2013, 10:58 PM
foreach (Process proc in Process.GetProcessesByName("ollydbg"))
{
if(proc.ProcessName.StartsWith("olly"))
proc.Kill();
}