Browse Source

调用kazam exe来传递信息。

Jeff 3 years ago
parent
commit
8d846ce148
1 changed files with 19 additions and 0 deletions
  1. 19 0
      FactoryTool_CShare/Business/CommonMethod.cs

+ 19 - 0
FactoryTool_CShare/Business/CommonMethod.cs

@@ -143,6 +143,23 @@ namespace MOKA_Factory_Tools
 
         }
 
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="runFilePath"></param>
+        /// <param name="args"></param>
+        /// <returns></returns>
+        public static bool StartProcess(string runFilePath, string args)
+        {
+            Process process = new Process();//创建进程对象    
+            ProcessStartInfo startInfo = new ProcessStartInfo(runFilePath, args);
+            startInfo.UseShellExecute = false;
+            startInfo.CreateNoWindow = true;
+            process.StartInfo = startInfo;
+            return process.Start();
+            //process.WaitForExit();
+        }
+
         /// <summary>
         /// 获取订单信息
         /// </summary>
@@ -2615,6 +2632,8 @@ namespace MOKA_Factory_Tools
                 return false;
             }
 
+            StartProcess(AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "tcp_send.exe", sn);
+
             return true;
         }