title: Using a batch file, how do I delete files that have a certain string of characters inside?
body: <p>I want to make a .bat files that can allow me to delete the file if a certain string of characters appears inside. For example, if I want to delete files that have the string harp inside of it and the files in the folder are:</p>
  
  <pre><code>harp1.txt
  mellowharp.txt
  highharplow.txt
  </code></pre>
  
  <p>I want to be able to delete all of these files. I figured out how to do it if it starts or ends with the string, by merely writing </p>
  
  <pre><code>del harp*.*
  del *harp.*
  </code></pre>
  
  <p>But I can't figure out how to do it if harp is found in the middle of the string. </p>
  
  <p>I've tried things like putting an asterisk on each side of harp for a catch all case, but obviously that doesn't work. </p>
  
  <p>This is literally my first day and experience with .bat files, and I would really appreciate any help I get on this, but please by gentle and explain EVERYTHING because I'm coming into this with no knowledge whatsoever.</p>