VB Code:
Dim P As Process = New Process P.StartInfo.FileName = "CMD.EXE" P.StartInfo.Arguments = "/c NETSTAT -N" P.StartInfo.CreateNoWindow = true P.StartInfo.WindowStyle = ProcessWindowStyle.hidden P.StartInfo.RedirectStandardError = True P.Start() TextBox1.Text = P.StandardOutput.ReadToEnd.ToString
I did try system.diagnostic.process.start(p), but that did not work.
I want the Output(ipaddress) to be in a Textbox, not written to a Stream, but as there are no properties like messageoutput, what do I do?




Reply With Quote