2
我有重定向實時過程輸出的一個問題,我運行一個Java的.jar文件從 vb.net的過程,我想重定向它。我用richtextbox創建了一個控制檯表單。 參數很長,所以我不寫在那裏。該代碼(它不是重定向任意):VB.net重定向實時過程輸出
console.show() 'Console is a console window...
dim p as new process
p.startinfo.filename = java '(java as string: C:\Program Files\java....)
p.startinfo.argument = "-Xms2048M -Xmx4096M...."
p.startinfo.redirectstandardoutput = true
'what is comme there?
console.richtextbox1.text = 'and here is a redirected output, but i want redirect real time.
Thx任何想法和有用的答案!
好吧,是的,我忘了,但是這不回答這個問題。 – ProGamingHun 2014-10-31 15:20:05
@ProGamingHun你說這不起作用。這是你當前代碼的原因。 – 2014-10-31 15:26:21
這不提供問題的答案。要批評或要求作者澄清,請在其帖子下方留言。 – PaulG 2014-10-31 15:31:23