[Help]Terminating Specific Processes?[Help]
I was wondering what is the best way to terminate a specific process running on your PC.
Like if i wanted to press a button it would terminate Google Chrome.
I'm trying to make it where, if it is running it will terminate it, otherwise if it isn't running a MsgBox will say so.
[php] For Each p In Process.GetProcessesByName("Notepad")
p.Kill()
Next[/php]
Thanks for that, but is there anyway to tell if Notepad is running..Like
If p was running it would .Kill it
Else
If it wasn't running a message box would say it isn't running