No prob. Glad to help.

I added an enhancement for opening the textfile (optional) when its done processing.

vb Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.     Dim oPSI As New System.Diagnostics.ProcessStartInfo
  3.     Dim oProcess As System.Diagnostics.Process
  4.     With oPSI
  5.         .FileName = "C:\Windows\System32\cmd.exe"
  6.         .CreateNoWindow = True
  7.         .WindowStyle = ProcessWindowStyle.Hidden
  8.         .WorkingDirectory = "C:\Users\VB-Guru\"
  9.         .UseShellExecute = True
  10.         .Arguments = "/C Ping google.com > PingResults.txt"
  11.     End With
  12.     oProcess = System.Diagnostics.Process.Start(oPSI)
  13.     oProcess.WaitForExit()
  14.     System.Diagnostics.Process.Start(oPSI.WorkingDirectory & "PingResults.txt")
  15. End Sub