I want to make it so the "netstat" command is constantly running. How do you do that?
4 Answers
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
-
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.– Community BotCommented Nov 23, 2021 at 15:27