I think the answer here would be to remove the interval parameter and run netstat in a loop.
If timer accuracy is important using a language that supports "time > xx"(or some form of int representation) conditionals or write your own/find an implementation of the same for batch (my guess would be ~100 lines for the logic).
if accuracy isn't particularly important looping "netstat -b" x times with a delay between would be fairly trivial to implement.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.