Welcome, guest | Sign In | My Account | Store | Cart
@echo off
  call:count TCP
  call:count UDP
exit /b

:count
  for /f "tokens=1" %%i in ('netstat -an^
  ^| find /c "%1"') do (
    if "%1" equ "" goto:eof
    echo Totaly %1 endpoints: %%i
  )
exit /b 0

History