如何在.net Windows应用程序中打开dos提示
问题描述:
我想在.net Windows应用程序中打开一个dos提示.请提出任何dll文件或任何其他替代方法.
I want to open a dos prompt within my .net windows application. Please suggest any dll file or any other alternative.
答
您可以在 Diganostics 名称空间中使用Process.Start("cmd.exe");
它. br/>
请参见 MSDN [文章 [ ^ ]将向您显示操作方式.[/Edit]
You can useProcess.Start("cmd.exe");
It''s in the Diganostics namespace.
See MSDN[^]
If you don''t want the user to be able to type into the cmd session then this stack overflow article[^] will show you how.[/Edit]
在此期间,不再存在"DOS提示符"之类的东西.知道你在问什么.—SA
There is no such thing as "DOS prompt" anymore, period. Know what are you asking about.—SA