Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そのアプリケーション内でWindowsコマンドプロンプトを実行する必要がある.NETアプリケーションを作成しています。
これは可能ですか?はいの場合、どのように?
以下の画像のようなものを作成する必要があります。
http://imgur.com/4sEen
System.Diagnostics.Process クラスを見てください。このクラスで cmd を開始し、ストリームをリダイレクトします。次に、白いフォントでビットマップを描画し、ユーザーに表示できます。
とにかく、Ramhound のように、コマンド プロンプトを直接表示します。
使用Process.Start:
Process.Start
Process.Start("cmd.exe");