netsh interface ip add address name="Local Area Connection" gateway=x.x.x.x gwmetric=2
References:
http://www.autoitscript.com/forum/topic/70500-need-a-method-to-change-ip-gateway-only-by-script/
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm
-urShadow
No comments:
Post a Comment