Thread: Close Programs

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

    Join Date
    May 2003
    Posts
    25
    Rep Power
    0

    Close Programs


    How do you close another program that is open from within your program? For instance, whenever I run my program, I want it to close all open applications.
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,091
    Rep Power
    2222
    I cannot answer your question, but whoever can will first need to know what OS you're trying this in. Windows? Linux? OS9? CP/M?

    In Linux, you should be able to send a TERM signal to the other processes. In Windows, I think it will involve shell programming, possibly Windows Script Host. But we will need to know the OS first.
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,594
    Rep Power
    4207
    For Windows, see this thread How to close a another program within C++
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    25
    Rep Power
    0
    Originally posted by dwise1_aol
    I cannot answer your question, but whoever can will first need to know what OS you're trying this in. Windows? Linux? OS9? CP/M?
    I'm running it in Windows using Visual C++.

IMN logo majestic logo threadwatch logo seochat tools logo