码迷,mamicode.com
首页 > 其他好文 > 详细

ip快速设置.bat

时间:2015-12-10 19:49:36      阅读:166      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!