Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Destroying a windows process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Destroying a windows process" Watch "Destroying a windows process" New topic

Destroying a windows process

Michael Uter

Joined: Dec 10, 2002
Posts: 2
I have a task of launching another application using a .bat file. I can start the application successfuly by using:
Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("cmd /c start my.bat");
but when it comes time to kill the application I execute:
and the application is still running. Is there a way to kill a windows command window and it's running application?
Michael Uter
subject: Destroying a windows process
Similar Threads
Access Windows API to kill the process
A method to close application window
how kill process
Killing process spawned by Runtime.exec()
How to kill a windows process using java?