我想打電話給使用的Process.Start命令提示符下命令,然後使用StandardOutput我想在我的應用程序中使用的StreamReader讀取,但是當我運行下面的程序,在MessageBox我只是尋找路徑,直到調試,我在參數中陳述的命令不會附帶說明。 ProcessStartInfo info = new ProcessStartInfo("cmd.exe", "net view");
是否有重定向衍生進程的標準輸出並捕獲它的發生。在過程完成後,我所看到的所有內容都會執行ReadToEnd。我希望能夠在打印時獲得輸出。 編輯: private void ConvertToMPEG()
{
// Start the child process.
Process p = new Process();
// Redirect the out