- @echo off
- for /f "tokens=1* delims=:" %%a in ('ipconfig^|findstr/ic:"ip address"') do (
- set ip=%%b )
- netsh interface ip set address "本地连接" static%ip% 255.255.255.0
- echo. 修改子网掩码为255.255.255.0成功
- echo. & pause
复制代码 要不改IP地址,只改子网掩码``
环境 win7 32/64系统
酬金10 27505037 |