I have a piece of code that starts a program and runs several parameters. Based on different occurences through the day it can start multiple instances of the same program. At certain points in the programs execution it starts another process. When I start the main program I attach it to a variable so I know what the process ID is so I can kill it.
I can't get hold of the correct process ID of the child process that was launched by the parent I'm trying to kill. I want to kill both the patent and ONLY it's associated child process.
Can anyone help?
I can't get hold of the correct process ID of the child process that was launched by the parent I'm trying to kill. I want to kill both the patent and ONLY it's associated child process.
Can anyone help?