How to concatenate the first line of the .txt with the first line from the second .txt and so on in for loop
<p>I want to concatenate the first line of my txt-file with the first line of another txt file. The second with second and so on.
Now I have the following code, which concatenates every line with every line. With this code I get all 4 combinations, but I need only 2 </p>

<pre><code>for /f "delims=" %%c in (barcode.txt) do (
    for /f "delims=" %%d in (destination.txt) do (
        &gt;&gt;combine.txt echo %%c %%d
    )
)
</code></pre>