B
BigMan
How can I programmatically change the gateway or other network connection
settings?
settings?
BigMan said:How can I programmatically change the gateway or other network connection
settings?
Pegasus (MVP) said:Use netsh.exe:
netsh interface ip set address name="Local Area Connection X"
gateway=10.0.0.1 gwmetric=1 source=static addr=192.168.0.10
mask=255.255.255.0
See http://support.microsoft.com/default.aspx?scid=kb;EN-US;242468