Change Gateway Programmatically

bonono at bonono at
Wed Jan 11 07:52:04 CET 2006

Godwin Burby wrote:
> Dear Pythoneer,
>         I need to toggle the gateway ip of my windows xp machine quite
> often due to some software requirements. I just want to know whether i
> could do it programmatically using Python.
> If so how?

I am sure there must be some elegant python way but you may also like
to check out "netsh.exe", which comes with every XP.

More information about the Python-list mailing list