How to execute a command and get its output
<p>I've been learning a few things about ASP for the past few days.
I wanted to convert this PHP code line into ASP but I'm kinda stuck with it:</p>

<pre><code>$online = exec('netstat -a -n |find "5816" |find "ESTABLISHED" /c') +1;
</code></pre>

<p>I have tried creating a variable to store the data but unable to figure out how to check the port 5816 and count the amount of connections.
Help is appreciated!</p>

<p>It should be basically a command to be run in cmd to check the port and no. of connections established by it !</p>