@echo off
Title Confirm Selection
Echo.
set/p convert= 1: Turn on the wireless network, 2: Turn off the wireless network, 3: Set the local network to fixed ip,4: Set the local network to auto get, 5: Turn off the local network? (1/2/3/4):
If "%convert%" = = "1" goto C
If "%convert%" = = "2" goto E
If "%convert%" = = "3" goto F
If "%convert%" = = "4" goto G
If "%convert%" = = "4" goto H
: C
netsh interface set interface "Wireless network connection" enabled
Exit
: E
netsh interface set interface "Wireless network connection" disabled
Exit
: F
netsh interface ip set address "Local Area Connection" Static 10.0.3.199 255.255.255.0 10.0.3.1
netsh interface ip set dnsservers "Local Area Connection" static 114.114.114.114 Primary
Exit
: G
netsh interface ip set address "Local Area Connection" DHCP
Exit
: H
netsh interface set interface "Local Area Connection" disabled
Exit
This article is from the "Technical Achievement Dream" blog, please be sure to keep this source http://526869727.blog.51cto.com/2769621/1721659
IP quick Settings. bat