title: How can I use VB.NET to execute a batch file on another computer?
body: <p>In vb.net 2008 I want to execute a batch file that resides on another computer.
  There is no error, but nothing happens. 
  Here is the code:</p>
  
  <pre><code>Dim pStart As New System.Diagnostics.Process
  Dim startInfo As New System.Diagnostics.ProcessStartInfo(serverpath &amp; "\file.bat")
  startInfo.RedirectStandardOutput = True
  startInfo.WindowStyle = ProcessWindowStyle.Hidden
  startInfo.UseShellExecute = False
  pStart = System.Diagnostics.Process.Start(startInfo)
  pStart.WaitForExit()
  pStart.Close()
  </code></pre>