How to search and replace data in text file?
<p>I have a text file with data. And I would like to copy the text after <code>#NAME:,</code> and add some more text after that.</p>

<p>Original file:</p>

<pre><code>#NAME:,Disco Ball
http://my.site.com/discoball.mp3
#NAME:,Lasers
http://my.site.com/lasers.mp3
</code></pre>

<p>New text file:</p>

<pre><code>#NAME:,mp3-id="Disco Ball",Disco Ball
http://my.site.com/discoball.mp3
#NAME:,mp3-id="Lasers",Lasers
http://my.site.com/lasers.mp3
</code></pre>

<p>As you can see, I want to be able to copy the text after <code>#NAME:,</code> and then add it within the new text <code>mp3-id=" ",</code></p>

<p>How can I go about doing this either in a batch file or VB script?</p>