1

I want to make it so the "netstat" command is constantly running. How do you do that?

1
  • 2
    put it in a batch and loop it
    – Zina
    Commented Oct 23, 2016 at 15:45

4 Answers 4

4

Use the interval switch (see below):

enter image description here

1

You create a batch file for netstat using loop

:loop 
netstat -nao | findstr :80
timeout /T 500
clear
goto loop
1

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

1

use --contious or -c for example:

netstat -ano -p -c
1
  • 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 Bot
    Commented Nov 23, 2021 at 15:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .