/// <summary> /// /// </summary> /// <param name="path"></param> /// <param name="args"></param> /// <param name="outputFileName"></param> /// <param name="errorFileName"></param> /// <param name="inputFileName"></param> public static void ShowWindowApplicationEx(string path, string args, string outputFileName, string errorFileName, string inputFileName) { try { var process = new ExecutableHelper { ProgramFileName = path, Arguments = args }; if (!string.IsNullOrWhiteSpace(outputFileName)) { process.StandardOutputFileName = outputFileName; } if (!string.IsNullOrWhiteSpace(inputFileName)) { process.StandardInputFileName = inputFileName; } if (!string.IsNullOrWhiteSpace(errorFileName)) { process.StandardErrorFileName = errorFileName; } process.Run(); } catch (Exception e) { LoggerHelper.Write(LoggerOption.Error, e.Message); throw; } }
/// <summary> /// /// </summary> /// <param name="path"></param> /// <param name="args"></param> /// <param name="outputFileName"></param> /// <param name="errorFileName"></param> /// <param name="inputFileName"></param> public static void ShowWindowApplicationEx(string path, string args, string outputFileName, string errorFileName, string inputFileName) { try { var process = new ExecutableHelper { ProgramFileName = path, Arguments = args }; if (!string.IsNullOrWhiteSpace(outputFileName)) process.StandardOutputFileName = outputFileName; if (!string.IsNullOrWhiteSpace(inputFileName)) process.StandardInputFileName = inputFileName; if (!string.IsNullOrWhiteSpace(errorFileName)) process.StandardErrorFileName = errorFileName; process.Run(); } catch (Exception e) { LoggerHelper.Write(LoggerOption.Error, e.Message); throw; } }