Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
Use the WaitProcess method (http://smartbear.com/support/viewarticle/14499/) to see if the process exists and then, if it does, call the terminate method.
if (Sys.WaitProcess("MyApp", 20000).Exists)
{
Sys.Process("MyApp").Terminate()
}