title: vb script to remove only specific lines in a text file
body: <p>Would someone be kind enough to help me out with a vbscript?  I have a simple text file stored on <code>D:\Projects</code>.</p>
  
  <p>Here's a small sample of the contents (done in Notepad):</p>
  
  <pre><code>Header 1 (this will always vary and be one simple line of text)
  
  Captain:  John Doe 1
  Team Roster: Temp\filename blah blah
  Team Roster: Permanent\filename blah blah
  
  Header 2 (this will always vary and be one simple line of text)
  
  Captain:  John Doe 2
  Team Roster: Temp\filename blah blah
  Team Roster: Permanent\filename blah blah
  </code></pre>
  
  <p>What I need is for everything to be deleted in the file except for the header and each of the  headers needs to be repeated.  So the end result looks like this:</p>
  
  <pre><code>Header line 1
  Header line 1
  Header line 2
  Header line 2  etc...
  </code></pre>
  
  <p>I realize people come here in their free time to volunteer so any help would be very much appreciated.  I don't know how to program otherwise I would do this myself.  Thanks.</p>