I have a .bat script that launches a java process "java -jar ..." and after that I have two process in Windows, the original from where the bat is running (a cmd process) and a java process.
If we kill the java process the control returns to bat script and it finishes, but if we kill the cmd process the java process continues running. Does exist a way to propagates the kill from the bat script to the others processes opened from it ?