Kill All Processes with same name

Conejo

Well-known member
Joined
Jul 24, 2013
Messages
65
Location
USA
Programming Experience
1-3
Ok so i have this md5 scanner antivirus ive been working on and i wanted to add a process killer but some viruses have persistent processe which reappear and its annoying! Is there any way in VB.Net to lets say kill all procs with serv* or haha etc.
Thanks,
 
You can end a process in VB and you can get all processes in VB, so all you have to do is get all processes, test their name and, if they match, end them. The name is just a String so it's a simple case of string comparison.
 
Thanks it works and i also found another way its by executing taskkill and ex: taskkill /f /im vir* the * is for all procs with that name and similar ones :)
 
Back
Top