#1
  1. No Profile Picture
    Code Junky
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Central Missouri
    Posts
    358
    Rep Power
    0

    Command Line Termination of Running Application


    Okay.. this'll probably come off as a dumb question.. but.. eh.. I gotta ask.

    Okay, so I can "net start" and "net stop" my services.. no biggie..

    I can also "start c:\myprogram\program.exe"...

    but "how" can "stop" a windows application.. (i.e. from the command line).

    i.e. I want to "exit" a running GUI application from the command line..

    why? you might ask.. well, my interest here is some 'certain' non-service based servers.. such as my SMTP server, or Dynamic DNS tool...

    What I've got together is simply a small batch file to start and stop all of my web services and clients.. but .. seems, for the moment I can only start the clients.. can't seem to stop them from a batch script...

    Any input on this one, would be very helpful.. there's just "got" to be a way to stop an app from the command line.
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    28
    Rep Power
    0
    i don't remember fully, but i know it has to do with rundll...

    this is what i found so far

    microsoft has this to say

    ahh something much better.....

    main page with samples

    i think what you were looking for

    the good stuff
  4. #3
  5. No Profile Picture
    Code Junky
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Central Missouri
    Posts
    358
    Rep Power
    0
    Thanks for the reply, will take a look at these..
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    Kamloops, BC, Canada
    Posts
    55
    Rep Power
    13
    Check sysinternals' website for pskill.exe That will do what you are looking for.
    Linux is for those who hate Windows.
    FreeBSD is for those who love UNIX.
    -------
    Have you read The Handbook yet?
    How about The FAQ?
    Have you searched the mailing lists?
    Or read any of the man pages?
    Have you searched the web for BSD resources?
    In short, have you done your homework yet?
  8. #5
  9. No Profile Picture
    Code Junky
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2001
    Location
    Central Missouri
    Posts
    358
    Rep Power
    0
    Thanks.. I "think" that's what I need...

    Found something in MS's site about some "resource kit" and several references to "tskill", "kill" and "taskkill" but these all seem to be related to winXP..

    anyway.. will give this sysinternals tools a shot..

    thanks a bunch.

IMN logo majestic logo threadwatch logo seochat tools logo