title: Storing return value of a command in batch file
body: <p>I am creating a batch file, in which I want to store the value returned by the following command (in Windows):</p>
  
  <pre><code>netstat -an | find ":port" /c
  </code></pre>
  
  <p>How to store the count value and print using echo?</p>