Forum Discussion
pranavswaroop_g
11 years agoContributor
For the forcefull termination of application you can use the below.. the input for "Application" is process name. This will only terminate if the process still exists
//*************************************************************************
//This function is used to terminate the application if it exists before starting of the job
function TerminateApplicationProcess(Application)
{
Sys["Refresh"]();
if (Sys["WaitProcess"](Application,100)["Exists"])
{
Sys["Process"](Application)["Terminate"]();
//Log["Message"]("--->" + Application + " Process Existed Previously So terminating");
}
}