Ok,
Suppose I send a file to another exe using a command$ (from within my program) - how do I get a string in return??
Cheers,
Vbnewbie.
Printable View
Ok,
Suppose I send a file to another exe using a command$ (from within my program) - how do I get a string in return??
Cheers,
Vbnewbie.
Oh, to clarify - the program being called is also made by me in VB.net...
VB Code:
Dim y As New ProcessStartInfo("ipconfig", "/all") y.CreateNoWindow = True ' do not show a window y.RedirectStandardOutput = True ' Needed to get the output y.UseShellExecute = False Dim x As Process = Process.Start(y) x.StartInfo = New ProcessStartInfo("ipconfig", "/all") Dim output As String = x.StandardOutput.ReadToEnd MsgBox(output)