private void RunExe(ref string Info, Task_t job, Type[] types, object[] paras) { Info += "[程序集搜索路径:" + job.SearchPath + "][加载exe:" + job.TypeName + "]"; try { Hashtable ht = MainUtil.InvokeExe(job.SearchPath, job.TypeName, paras.Select(p => (string)p).ToArray <string>()); if (!(bool)ht["Success"]) { Info += "[出错]\r\n" + (ht["Data"] ?? "").ToString(); if (job.LogWhen == 0 || job.LogWhen == 2) { //失败或一定记录时 WriteLog(Info); } return; } else { Info += "[成功]\r\n"; if (job.LogWhen == 1 || job.LogWhen == 0) { //成功时记录 WriteLog(Info); } } } catch (Exception ex) { if (job.LogWhen == 0 || job.LogWhen == 2) { //失败或一定记录时 WriteLog(Info + "\r\n" + ex.ToString()); } return; } }