#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0

    Killing process help


    Hello, I need to make a python file for close a process
    The problem is the next:
    I want the user doesn't see the CMD window..
    Does it's possible ?

    import os
    os.system("taskkill /im injector* /f")
    os.system("taskkill /im *injector /f")

    Thanks in advance !
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    1
    Rep Power
    0
    I don't really understand why you wouldn't want your CMD window not to be running but you could possibly run:

    import os

    pid = os.getpid()
    os.kill(pid,2)

IMN logo majestic logo threadwatch logo seochat tools logo