title: Batch For loop exclude file name that contains
body: <p>I have a simple batch file that will loop through all *Test.htm files and copy them.  Some of the files will contain a string that I don't want to copy.</p>
  
  <pre><code>FOR /R "C:\" %%g IN (*Test.htm) DO  (
  echo %%g
  )
  </code></pre>
  
  <p>What I want in pseudo code:</p>
  
  <pre><code>@echo off
  FOR /R "C:\" %%g IN (*Test.htm) DO ( 
     if %%g contains "Exclude" do nothing
  else 
     copy...
  )
  </code></pre>