title: homemade antivirus batch file
body: <p>Here is my current file.
      :loop
      netstat -a -b -n >> log.txt
      timout 300 /nobreak >nul
      goto loop</p>
  
  <p>It logs all connections.  When you use the -b switch with the netstat command, it tells you what program it running on.  I need to filter out all of those results that show up as "system".  here's what I mean.</p>
  
  <p>here is a line from the netstat -a -b -n command</p>
  
  <pre><code>  FDResPub
   [System]
    UDP    0.0.0.0:3702           *:*
  </code></pre>
  
  <p>see where it says [system]?  I want everything that has system in it, to not be displayed, so only non-windows apps get logged.</p>
  
  <p><strong>edit:</strong></p>
  
  <p>I know to use the <code>find -v</code> command, and that does "what I want", but it still gives me all the extra junk.  I really just need a way to prevent that.</p>