Search Tools Links Login

Kill process as easy as 1-2-3


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

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 134 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.