Looping through text file
<p>I have information in a text file that I need to extract and put into a loop. For simplicity, lets assume the first line is a person and the second line is their favorite color.</p>

<p>Text file looks like this:</p>

<blockquote>
<pre><code>tim
red
sarah
blue and yellow
sam
green
</code></pre>
</blockquote>

<p>I'd like an echo output to look like this: </p>

<pre><code>tim likes red
sarah likes blue and yellow
sam likes green
</code></pre>

<p>What I have for code so far is below:</p>

<pre><code>for /f "tokens=1 delims=" %%Name %%color in (C:\textfile.txt) do echo %%Name likes %%color
</code></pre>