public static string IsRunning(int index, string path, string dizhi) { MyLdcmd myldcmd = MyLdcmd.GetObject(dizhi); myldcmd.SimulatorPath = ld.SimulatorPath; string a = myldcmd.isrunning(index, path); string[] str = Regex.Split(a, "\r\n", RegexOptions.IgnoreCase); foreach (string ab in str) { //WriteLog.WriteLogFile("", a); } return(str[4]); }