//cx为要判断的进程名的字符串数组
Process[] arrayProcess = Process.GetProcesses();
Process[] ppp;
foreach(string pn in cx){
// MessageBox.Show(pn);
ppp = Process.GetProcessesByName(pn);
if (ppp.Length <= 0)
{
i = 1;
ss += con(pn) + " process is not running" + "\r";
}
}