This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Java » Java in General
Bookmark "Destroying a windows process" Watch "Destroying a windows process" New topic
Author

Destroying a windows process

Michael Uter
Greenhorn

Joined: Dec 10, 2002
Posts: 2
Hello,
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:
process.destroy();
and the application is still running. Is there a way to kill a windows command window and it's running application?
v/r
Michael Uter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Destroying a windows process