最近电脑有问题,一重装电脑就忘了备份这个,又得重新写了,备份一下在博客安全,那都能找到。
@echo off echo 1.自动获取IP 2.公司IP echo 3.打开WIFI 4.关闭WIFI echo 5.重设WIFI 6.网络承载信息 echo\ set/p input=请输入序号: if %input%==1 (netsh interface ip set address name="本地连接" source=dhcp netsh interface ip set dns name="本地连接" source=dhcp netsh wlan start hostednetwork) if %input%==2 (netsh interface ip set address name="本地连接" source=static addr=172.16.23.139 mask=255.255.0.0 gateway=172.16.254.11 netsh interface ip set dns name="本地连接" source=static addr=202.101.172.35 netsh interface ip add dns name="本地连接" addr=202.102.172.47 index=2 netsh wlan start hostednetwork) if %input%==3 netsh wlan start hostednetwork if %input%==4 netsh wlan stop hostednetwork if %input%==5 (netsh wlan set hostednetwork mode=allow ssid=Bruce key=ckbin0088 netsh wlan start hostednetwork) if %input%==6 netsh wlan show hostednetwork pause