Assuming this is a Windows 7 machine, and we're talking about batch scripts on the Windows command line.
Imagine that I want to start and stop two different processes running in the background and start them while they are running in the background. For instance:
START /B CMD /C tomcatA.bat doSomeStuff stopTomcatACmd START /B CMD /C tomcatB.bat doSomeStuff stopTomcatBCmd
I am trying to figure out how to implement stopTomcatBCmd . On a Linux machine, you can just kill pid .
My question is: How to kill a certain process running in the background on Windows?
source share