title: Batch script to search strings in text file; echo string found or not found
body: <p>I need a CMD script that is able to search through a text file based on a <code>findstr</code> command that has multiple strings in it to be searched for.</p>
  <hr />
  <p>In this case, I have created a text file <em><strong>(kb.txt)</strong></em> that contains the result of the command:</p>
  
  <pre class="lang-bat prettyprint-override"><code>wmic qfe list
  </code></pre>
  <p>The script I need will read the file and searches through it with the <code>findstr</code> command like:</p>
  <pre class="lang-bat prettyprint-override"><code>findstr &quot;kb3199321 kb3175631 kb3155567 kb3143345&quot;
  </code></pre>
  <p>If the string is not found, it will output the string that is not found. The same goes for those that have been found. Example of output:</p>
  <pre class="lang-bat prettyprint-override"><code>kb3199321 not found
  kb3175631 found
  kb3155567 found
  kb3143345 not found
  </code></pre>
  <p>The script should loop through the findstr command for all its strings (not just the 4 listed above, it could be a few dozen to hundreds), and for each of them, echo if the string is found or not.</p>
  <hr />
  <h3>Note</h3>
  <p><em>If the <code>findstr</code> command is too limited (where it can't search through more than a hundred strings), then the script should read off all the strings from another separate text file (e.g. &quot;searchfile.txt&quot;), then search through the &quot;kb.txt&quot; to see if it is able to find the strings, and echo the same wanted results as above</em></p>