RichardChu
August 6th, 1999, 10:41 AM
how do you go about killing a process started by a batch file? I've tried .destroy(), but it does not work whatsoever. Below is sample code:
Process myProc = Runtime.getRuntime().exec("mybatch.bat");
myProc.destroy(); // doesn't work.
// contents of mybatch.bat
start c:\winnt\cdplayer.exe
Does anyone know of a solution or a workaround?
Process myProc = Runtime.getRuntime().exec("mybatch.bat");
myProc.destroy(); // doesn't work.
// contents of mybatch.bat
start c:\winnt\cdplayer.exe
Does anyone know of a solution or a workaround?