FOR /L %%F IN (100,1,253) DO (
netsh interface ip set address "本地连接" static 192.168.1.%%F 255.255.255.0 192.168.1.254 1
echo %%F >> D:/test.txt
ping 192.168.1.254 >> D:/test.txt
)
循环配置本地IP批处理命令
最新推荐文章于 2023-09-04 00:38:24 发布
FOR /L %%F IN (100,1,253) DO (
netsh interface ip set address "本地连接" static 192.168.1.%%F 255.255.255.0 192.168.1.254 1
echo %%F >> D:/test.txt
ping 192.168.1.254 >> D:/test.txt
)