[mono-vb] Re directing output of console application to stream

Easy_Rider9999 jhmgbl2 at t-online.de
Sat Nov 14 14:41:15 EST 2009




Easy_Rider9999 wrote:
> 
> I found the Error I misspelled StandardOutput... The German Standart is
> the same as English standard!!!8-O
> 
> 

This code is working:

Private Sub xvinfo
			Dim si as new System.Diagnostics.ProcessStartInfo
			si.CreateNoWindow = true
			si.UseShellExecute = false
			si.RedirectStandardOutput = true
			si.FileName = "xvinfo"
			Dim p as process = system.diagnostics.process.start(si)
			Dim s as IO.StreamReader = p.StandardOutput
			Dim l as String
			p.start
			Do 
				l = s.ReadLine
				if l is nothing then exit Do
				Dim iter as TreeIter = store.AppendValues(RootIter,l)
			Loop
			p.waitforexit
			
			
		End Sub

-- 
View this message in context: http://old.nabble.com/Redirecting-output-of-console-application-to-stream-tp26343579p26353221.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list