Windows批量添加防火墙例外端口

作者:freethy 发布于:2012-6-15 13:31 Friday

echo off
cls
set var=30000
set end=30010

:continue
set /a var+=1

echo add port %var%
netsh firewall add portopening TCP %var%  ftp_data_%var%

if %var% lss %end% goto continue

echo complete
pause

Powered by emlog 苏ICP备11068260号-7