首页 > 其他 > 详细

ip快速设置.bat

时间:2015-12-10 19:47:04      阅读:215      评论:0      收藏:0      [点我收藏+]

@echo off 

title 确认选择 

echo. 

set /p CONVERT= 1:开启无线网络,2:关闭无线网络,3:设置本地网络为固定IP,4:设置本地网络为自动获取,5:关闭本地网络?(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 "无线网络连接" enabled 

exit

:E 

netsh interface set interface "无线网络连接" disabled 

exit

:F

netsh interface ip set address "本地连接" static 10.0.3.199 255.255.255.0 10.0.3.1 

netsh interface ip set dnsservers "本地连接" static 114.114.114.114 primary

exit

:G

netsh interface ip set address "本地连接" DHCP

exit

:H

netsh interface set interface "本地连接" disabled 

exit


本文出自 “技术成就梦想” 博客,请务必保留此出处http://526869727.blog.51cto.com/2769621/1721659

ip快速设置.bat

原文:http://526869727.blog.51cto.com/2769621/1721659

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!