[問題] 想呼叫DOS下的程式,並將結果導回textbox

看板C_Sharp (C#)作者 (jiing)時間19年前 (2006/10/02 23:20), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
您好 我想要執行一個DOS程式 並將執行結果導回C#的textbox 目前是想先 Process.Start("myplayer.exe", "./asong.txt >temp.txt"); 然後再開檔temp.txt 請問有別的方式嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.12.63

10/02 23:31, , 1F
RedirectStandardOutput設成true然後讀StandardOutput
10/02 23:31, 1F

10/02 23:56, , 2F
thanks a lot m(_._)m
10/02 23:56, 2F
文章代碼(AID): #158IvL_m (C_Sharp)
文章代碼(AID): #158IvL_m (C_Sharp)