Stopping .bat files dinamically using java : I need to write a Java app in which I have several .bat files which run in continuous loops. I have 4 of them, and only one of them can run at one time. I need to stop the other 3. 

Something like 

if condition 
   
-stop the other 3 .bat files ( well normally one of them would run but not knowing which, I try to stop all 3);

-start the .bat file which satisfies the condition.

-when other condition of a different .bat file is satisfied, the other 3 (again, one actually) would be stopped + this .bat file starts running (continuous loop)


I am struggling to get to how to stop these .bat files from my java code..is there anything that I can use in command line to stop one particular .bat file from running, identifying it by name or something? Because running commands from cmd using Java is something that I know how to do.