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
| Contact Us
© 2022 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.