Results 1 to 3 of 3

Thread: Process Killing?

  1. #1

    Thread Starter
    Banned
    Join Date
    Aug 2007
    Posts
    17

    Process Killing?

    Can someone help me with this? It's pretty self-explanatory.
    I want to have the codeto kill a process, and the code to kill one IF it is active.

    Thanks

  2. #2
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Process Killing?


  3. #3
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    Re: Process Killing?

    Quote Originally Posted by Talix
    Can someone help me with this? It's pretty self-explanatory.
    I want to have the codeto kill a process, and the code to kill one IF it is active.

    Thanks
    Put this in your form load or button_click and it will end the process you specify (process.exe)
    Code:
    For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name='process.exe'")
    Process.Terminate
    Next Process
    Change process.exe to the process you'd like to end of course.

    Please (rep pts) rate me if this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width