
CODE: [Copy to clipboard]@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
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |