how to find process id for terminating the app



Hi,

I am executing an exe using
Runtime.getRuntime().exec(cmd); on windows platform

cmd contains the command line to run the external exe.

How can i find the process id of this external program?
i want this process id to kill the instance after my program is
finished.

Thanks,
Krisp
.