Tray icon to change IP Gateway?

  • Thread starter Thread starter Noozer
  • Start date Start date
N

Noozer

How to change IP Gateway simply?

Just looking for some sample code... Could be VB6 or VB Net 2005....

I want to have a Tray icon. When double clicked it changes the TCPIP gateway
to a secondary choice. Double click again and it's back to the original
setting.

Thx!
 
You could simply run the shell command to execute the command line route
command.

to change the route from the command line it's something like :

route CHANGE 0.0.0.0 192.168.1.254 METRIC 2

so (untested) you can :

shell("route CHANGE 0.0.0.0 192.168.1.254 METRIC 2") to change the route.

Regards
Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top