@echo off
:startIP
set /p source=STATIC Y or N or E:
echo source:%source%
if "%source%" == "y" ( goto staticIP )
if "%source%" == "n" ( goto dhcpIP )
if "%source%" == "e" ( goto exitSet )
:staticIP
set /p IP=IP:
echo IP:%IP%
netsh interface ip set address name="本地连接" source=static addr=%IP% mask=255.255.255.0 gateway=192.168.10.1
goto startIP
:dhcpIP
netsh interface ip set address name="本地连接" source=dhcp
goto startIP
:exitSet
exit
@Rem @netsh interface ip set dns name="本地连接" source=static addr=192.168.10.1

啦啦啦

相关文章:

  • 2021-09-01
  • 2021-10-25
  • 2021-05-04
  • 2021-04-22
  • 2021-06-06
  • 2021-05-29
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-02-05
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案