Submitted By: Steve Bossen

Uses Netstat.exe to gather network statistics and save them to a log file.

Visual Basic
Edit|Remove
rem nstat.bat - used to gather network statistics for local machine to a log file for easy viewing
rem author: steve bossen - macro 4
rem may 13, 2004

netstat -a            > nstat.log.txt
echo *************** >> nstat.log.txt
netstat -e           >> nstat.log.txt
echo *************** >> nstat.log.txt
netstat -n           >> nstat.log.txt
echo *************** >> nstat.log.txt
netstat -o           >> nstat.log.txt
echo *************** >> nstat.log.txt
netstat -r           >> nstat.log.txt
echo *************** >> nstat.log.txt
netstat -s           >> nstat.log.txt

notepad nstat.log.txt