Forums Register Login

Destroying a windows process

+Pie Number of slices to send: Send
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
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 964 times.
Similar Threads
how kill process
A method to close application window
How to kill a windows process using java?
Access Windows API to kill the process
Killing process spawned by Runtime.exec()
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:20:28.