• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Destroying a windows process

 
Michael Uter
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic