title: CMD/Windows shell - find and state program using port
body: <p>This is more of a Win32 shell programming question - the intention is to have a single line/piped command that will give me the application that is using a certain port - </p>
  
  <p>I have 2 shell commands and I want to combine/pipe them together:</p>
  
  <pre><code>netstat -aon | findstr 0.0:80
  wmic PROCESS get Caption,ProcessId | findstr &lt;process_id_here&gt;
  </code></pre>
  
  <p>The first command gives me the processID that is using port 80 on my machine e.g. "12345"
  The second command gives me the name of the process if I give "12345" in  </p>
  
  <p>I am not sure how to combine then - can I pipe the processID to the second command? Can this be done in one line... And how...</p>
  
  <p>Thanks
  - Sami</p>