作者jiing24 (jiing)
看板C_Sharp
標題[問題] 想呼叫DOS下的程式,並將結果導回textbox
時間Mon Oct 2 23:23:53 2006
您好
我想要執行一個DOS程式
並將執行結果導回C#的textbox
目前是想先
Process.Start("myplayer.exe", "./asong.txt >temp.txt");
然後再開檔temp.txt
請問有別的方式嗎?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.120.12.63
推 EricTsai:RedirectStandardOutput設成true然後讀StandardOutput 10/02 23:31
→ jiing24:thanks a lot m(_._)m 10/02 23:56