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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.