title: Batch file to extract string from multiple text files
body: <p>I have over a hundred text files formatted like this</p>
  <pre><code>    &lt;TITLE&gt; This is the title
      &lt;SUBJECT&gt; This is the subject
      &lt;XTITLE&gt;
  </code></pre>
  <p>I want to extract the title values using a Windows batch file, e.g. &quot;This is the title&quot; from each of these text files to a single output file, and include also the filename of the text file where these were found. Each text file can have multiple title tags. Example output below:</p>
  <blockquote>
  <p>This is the title textfile1.txt This is the second title textfile1.txt</p>
  <p>This is the third title textfile2.txt</p>
  <p>This is the fourth title  textfile3.txt</p>
  </blockquote>
  <p>Anyone?</p>