(view source code of netstatlive.bat as plain text)
@echo off
:: By Shannon Zielinski
setlocal
:START
for /F "tokens=2" %%a in ('"netstat -e | find /I "byte""') do set down1=%%a
for /F "tokens=3" %%a in ('"netstat -e | find /I "byte""') do set up1=%%a
ping -w 850 -n 1 10.1.1.1 > nul
for /F "tokens=2" %%a in ('"netstat -e | find /I "byte""') do set /A down2=(%%a-%down1%)/1390
for /F "tokens=3" %%a in ('"netstat -e | find /I "byte""') do set /A up2=(%%a-%up1%)/1024
cls
echo Down %down2% KB
echo Up %up2% KB
title %down2% down %up2% up
GOTO START
page last modified: 2024-04-16; loaded in 0.0050 seconds