diff --git a/NewLife.Core/Extension/ProcessHelper.cs b/NewLife.Core/Extension/ProcessHelper.cs index b77ff55d0..95fe94efc 100644 --- a/NewLife.Core/Extension/ProcessHelper.cs +++ b/NewLife.Core/Extension/ProcessHelper.cs @@ -311,7 +311,7 @@ public static Boolean GetHasExited(this Process process) /// 进程退出时执行 /// 工作目录 /// 进程退出代码 - public static Int32 Run(this String cmd, String? arguments = null, Int32 msWait = 0, Action? output = null, Action? onExit = null, String? working = null) => Run(cmd, arguments, msWait, output, Encoding.UTF8, onExit, working); + public static Int32 Run(this String cmd, String? arguments = null, Int32 msWait = 0, Action? output = null, Action? onExit = null, String? working = null) => RunNew(cmd, arguments, msWait, output, Encoding.UTF8, onExit, working); /// 以隐藏窗口执行命令行 /// 文件名 @@ -322,7 +322,7 @@ public static Boolean GetHasExited(this Process process) /// 进程退出时执行 /// 工作目录 /// 进程退出代码 - public static Int32 Run(this String cmd, String? arguments = null, Int32 msWait = 0, Action? output = null, Encoding? encoding = null, Action? onExit = null, String? working = null) + public static Int32 RunNew(this String cmd, String? arguments = null, Int32 msWait = 0, Action? output = null, Encoding? encoding = null, Action? onExit = null, String? working = null) { if (XTrace.Log.Level <= LogLevel.Debug) XTrace.WriteLine("Run {0} {1} {2}", cmd, arguments, msWait);