Welcome, guest | Sign In | My Account | Store | Cart

Needs just for statistic, no further.

Batch, 8 lines
1
2
3
4
5
6
7
8
@echo off
  call:endpoint tcp
  call:endpoint udp
exit /b

:endpoint
 <nul set /p res=%1: & (netstat -an | find /i /c "%1")
exit /b 0
Created by greg zakharov on Mon, 19 Nov 2012 (MIT)
Batch recipes (42)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks