Kill process as easy as 1-2-3
![Visual Basic 6, or VB Classic Visual Basic 6, or VB Classic](https://www.fortypoundhead.com//assets/img/icons/v7/vb6.png)
Killing a process/program as easy as 1-2-3. No API, just as little piece of code.
Just sharing.
Enjoy!!
Original Author: Uchiha Yueh
Code
Dim Process
For Each Process In GetObject("winmgmts:"). _
ExecQuery("select name from Win32_Process where name='notepad.exe'")
Process.Terminate (0)
Next
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.