Answers for "how to run a console app in another app c#"

C#
1

C# console app how to run another program

System.Diagnostics.Process pProcess = new System.Diagnostics.Process();
   pProcess.StartInfo.FileName = "c:\\analyze.exe"
   pProcess.StartInfo.Arguments = inputPath + " " + outputPath;
   pProcess.Start();
   pProcess.WaitForExit();
   pProcess.Close();
Posted by: Guest on February-09-2021
0

how to run a console app in another app c#

ConsoleColor color = Console.ForegroundColor;
ProcessStartInfo startinfo = new ProcessStartInfo(nameProgramB);
startinfo.CreateNoWindow = false;
startinfo.UseShellExecute = false;
Process p = Process.Start(startinfo);
p.WaitForExit();
Console.ForegroundColor = color;
Posted by: Guest on May-06-2022

C# Answers by Framework

Browse Popular Code Answers by Language