要不改IP地址,只改子网掩码``复制代码
- @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
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |