I want to make it so the "netstat" command is constantly running. How do you do that?
14 Answers
Use the interval switch (see below):
You create a batch file for netstat using loop
:loop netstat -nao | findstr :80 timeout /T 500 clear goto loop I use this command
netstat -an 5
here 5 does the magic for netstat. it represents time interval. so once once completed, it will wait for that much of time e.g. in this case it will wait for 5 seconds. ....cheers
use --contious or -c for example:
netstat -ano -p -c 1 