nmrhth Posted September 2, 2003 Posted September 2, 2003 I want to run the ping program using the shell command and save the results to a text file. is there any way to have visual basic save the result of the ping operation? Quote
Administrators PlausiblyDamp Posted September 2, 2003 Administrators Posted September 2, 2003 something similar to Dim pi As New ProcessStartInfo pi.FileName = "ping.exe" pi.RedirectStandardOutput = True Dim p As New Process p.StartInfo = pi p.Start() Dim s As String = p.StandardOutput.ReadToEnd should do it Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts