Change Gateway Programmatically

Fredrik Lundh fredrik at pythonware.com
Wed Jan 11 02:40:17 EST 2006


Godwin Burby wrote:

>         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?

os.system("route ...") could work.

for details on the route command, use "route /?" at the windows command
prompt.

</F>






More information about the Python-list mailing list