联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off ipseccmd -w reg -p Block -y ipseccmd -w reg -p Block -o set "a=0" set "b=" set "list=" FOR /f "skip=1 delims= " %%i IN (D:\禁止IP列表.txt) DO call :_ipsec "%%i" if %a% leq 386 ipseccmd -w reg -p Block:1 -r filterlist%b% -f %list% -n BLOCK ipseccmd -w reg -p Block -x goto _next :_ipsec set /a a+=1 set list=%list% %~1 if %a% gtr 386 ( ipseccmd -w reg -p Block:1 -r filterlist%b% -f %list% -n BLOCK set "list=" set "a=0" set /a b+=1 ) goto :eof :_next