Im trying to give my application the option to add routes, using the command line util route add.

But to add a route i obviously need to use "route add -p 123.456.789.000 mask 255.225.255.0 987.654.321.000" (Numbers just examples)

I have so far.

VB Code:
  1. Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
  2.         txtIp.Text = ""
  3.         txtMask.Text = ""
  4.         txtGate.Text = ""
  5.     End Sub
  6.  
  7.     Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
  8.         Dim a As New Process
  9.         a.StartInfo.FileName = "route.exe"
  10.         a.StartInfo.Arguments = "add"
  11.         a.StartInfo.CreateNoWindow = True
  12.         a.StartInfo.UseShellExecute = False
  13.         a.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
  14.         a.Start()
  15.     End Sub

thanks for any help.

Jason