title: Batch File, search all files in folder, then sort
body: <p>I've done some small batch files before, but never any that required file names being read in a folder.</p>
  
  <p>I need a batch file that can sort a folder for me.</p>
  
  <p>I need it to look into a folder, search each text file, if it contains a "string", then move it into an accepted folder, if not, move it into a rejected folder.  </p>
  
  <p>Any ideas how to tackle this?</p>
  
  <p>I have used something as follows for finding text before.</p>
  
  <pre><code>find /c "string" file
  if %errorlevel% equ 1 goto
  </code></pre>
  
  <p>I don't know how to make it search each file in a folder, and those file names change on a daily basis.   </p>