CODE: [Copy to clipboard]@echo off cd.>3.txt for /f "tokens=2" %%i in (1.txt) do ( for /f %%j in (2.txt) do >>3.txt echo %%j %%i )