首页 电脑 电脑学堂 查看内容

自动修改IP bat

2011-10-17 20:54 695 0

摘要:   @echo off  echo "please input location: 1.CDG 2.OTM"  set /p v1=  if "%v1%" == "1" (  goto one  ) ...
关键词: Connection interface source Local netsh name Area set address static

  @echo off  echo "please input location: 1.CDG 2.OTM"  set /p v1=  if "%v1%" == "1" (  goto one  )  if "%v1%" == "2" (  goto two  )  :one  netsh interface ip set address name="Local Area Connection" source=dhcp  netsh interface ip set dns name="Local Area Connection" source=dhcp  exit  :two  netsh interface ip set address name="Local Area Connection" source=static addr=172.27.39.105 mask=255.255.255.0 gateway=172.27.39.1 gwmetric=auto  netsh interface ip set dns name="Local Area Connection" source=static addr=61.28.10.68  exit
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部