Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ip routes

Status
Not open for further replies.

andyrne

Technical User
Feb 15, 2001
43
GB
Does anyone know how to do things like route print and route add in vb? (I'd rather do this in code if I can rather than using shell and capturing the output).

Thanks, Andy
 
Hi there,

your question is a bit vague. Could you please elaborate on the implementation.
 
We have a number of retail outlets that will be using adsl for head office connectivity, with isdn being used as a backup link if (or when) the adsl goes down. In order to make this work we change an ip route to iether go through the modem or through router (internet ip address or head office (cisco router) ip address). All this does work, but is done through batch files that use the nt command route add, or route delete. I'm writing a program to do this automatically, & also connect to a pc at head office via winsock, so that if adsl was to go down at the store, it would change it's ip route to isdn then contact the server to tell it to do the same at head office. Most of this either works already, or will with some minor mods. What I want to do is do the same thing that the route add \ delete command does, but directly in vb, rather than shelling to a batchfile etc
 
Thanks for the explanation, but given what you are wanting to do, I am unable to help you in this regard simply because I do not know the answer to your question. Good luck anyway. Cheers,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top