且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Windows应用程序调用控制台exe

更新时间:2023-02-19 19:13:06

可以尝试

 Process.Start(" );  pre> 


根据 MSDN [^ ],您可以使用Process.Start的另一个重载:
 ProcessStartInfo psi =  ProcessStartInfo("  Path/To/Your.exe");
psi.CreateNoWindow =  true ;
Process.Start(psi); 


Hello,
can any one tell me how to call a Console exe from a windows form application.but i dont want to show the form.i need to show only console window of that exe.

Can you try

Process.Start("Path to your exe");


According to MSDN[^], you can use another overload of Process.Start:
ProcessStartInfo psi = new ProcessStartInfo("Path/To/Your.exe");
psi.CreateNoWindow = true;
Process.Start(psi);