管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-03-21 9dc33cee2d2a16c9269d8218a056c4d6fcdcf2b0
ExportMap/cs/Tools.cs
@@ -196,7 +196,7 @@
                p.Start();
                StreamWriter si = p.StandardInput; // 标准输入流 
                StreamReader so = p.StandardOutput; // 标准输出流
                //StreamReader so = p.StandardOutput; // 标准输出流
                StreamReader se = p.StandardError; // 标准错误流
                LogOut.Info("cmd = " + string.Join(",", list));
@@ -207,15 +207,15 @@
                }
                si.WriteLine("exit");
                string info = so.ReadToEnd();
                //string info = so.ReadToEnd();
                str = se.ReadToEnd();
                if (!string.IsNullOrEmpty(info)) LogOut.Debug(info);
                //if (!string.IsNullOrEmpty(info)) LogOut.Debug(info);
                if (!string.IsNullOrEmpty(str)) LogOut.Error(str);
                if (p.HasExited == false) p.Kill();
                se.Close();
                so.Close();
                //so.Close();
                si.Close();
                p.Close();
            }