title: Rename text files based on multiple strings in their contents
body: <p>Firstly, there are a couple of similar questions on here to this (<a href="https://stackoverflow.com/questions/17366009">Rename file based on file Content batch file</a> being the one I have tried to work an answer from - but I have no real clue what I'm doing), however I cannot find anything that meets my exact needs, and this is my first real foray into batch programming so the syntax is fairly new to me.</p>
  
  <p>The question:</p>
  
  <p>I have several hundred text files, with different names, where the header is formatted like so:</p>
  
  <pre><code>"Event Type : Full Histogram"
  "Serial Number : xxxxxx"
  "Version :  V 10.60-8.17 "
  "File Name : W133FA0Z.580H"
  "Histogram Start Time : 12:39:08"
  "Histogram Start Date : 2014-04-11"
  </code></pre>
  
  <p>I would like if possible to create a batch file to rename all the files in the folder to the format of:</p>
  
  <pre><code>StartDate StartTime
  </code></pre>
  
  <p>so for this example:</p>
  
  <pre><code>2014-04-11 12:39:08 
  </code></pre>
  
  <p>My problems lie in the fact I'm not sure how to actually point it to where to find the string if it was for just one line (I've tried editing the answers in the question I posted above). And, futhermore, I have no idea how to add a second bit of code to find the StartTime string and then append that to the StartDate.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Chris</p>