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:
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click txtIp.Text = "" txtMask.Text = "" txtGate.Text = "" End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim a As New Process a.StartInfo.FileName = "route.exe" a.StartInfo.Arguments = "add" a.StartInfo.CreateNoWindow = True a.StartInfo.UseShellExecute = False a.StartInfo.WindowStyle = ProcessWindowStyle.Hidden a.Start() End Sub
thanks for any help.
Jason




Reply With Quote