How do I clear the command prompt screen before printing out netstat information when using a refresh interval?
I've been using
netstat -anp TCP | Find "5000" to view information for a specific port. I've been attempting to add a refresh interval, but also clear the screen every time it's refreshed. The closest attempt I've made is:
netstat 1 -anp TCP | (cls & Find "5000")
With the above, I'm trying to run
cls, followed by
Find "5000" after every netstat refresh. However, it only runs
cls once, and
Find "5000" each time. Is something like this possible with netstat?