title: Cannot run batch file without hiding command window
body: <pre><code>   Dim pi As New System.Diagnostics.ProcessStartInfo()
     pi.FileName=(ipchangepath)
     pi.WorkingDirectory=""
     pi.Verb = "RunAs"
     pi.CreateNoWindow = true
     pi.UseShellExecute = False
     Dim p As process=Process.Start(pi) 
     p.WaitForExit
  </code></pre>
  
  <p>I am trying to run a batch file which sets my ip address to a static value. But I cant run the process without hiding the command window because the program won't run if ShellExecute is not true and the Window wont hide if is true.</p>
  
  <p>Any help?</p>
  
  <pre><code>netsh interface ip set address name=Wi-Fi source=static addr=10.10.118.161 mask=255.255.254.0 gateway=10.10.116.25 gwmetric=0
  netsh interface ip set dns "Wi-Fi" static 10.10.116.5
  netsh interface ip add dns "Wi-Fi" 202.200.100.95 index=2
  </code></pre>
  
  <p>The batch file</p>