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.
System.Windows.Forms.SendKeys.Send(key);システムでコマンド プロンプトを開き、メソッドを使用して一連のコマンドを渡しています 。
System.Windows.Forms.SendKeys.Send(key);
コマンドプロンプトがコマンドを実行しているかアイドル状態にあるかを意味するコマンドプロンプトのステータスを取得し、特定の時間にどのコマンドを実行しているかを知る方法はありますか?
使用StartInfo.RedirectStandardOutputこの投稿を参照してください:
StartInfo.RedirectStandardOutput
System.Diagnostics.Processを使用してコマンドラインでファイルを配管する