如何从Windows应用程序调用控制台exe [英] How to call a Console exe from a windows application
本文介绍了如何从Windows应用程序调用控制台exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
谁能告诉我如何从Windows窗体应用程序调用控制台exe.但是我不想显示该窗体.我只需要显示该exe的控制台窗口即可.
解决方案
可以尝试
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);
这篇关于如何从Windows应用程序调用控制台exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文