CODE: [Copy to clipboard]@echo off for /f %%a in (1.txt) do ren 2.txt %%a
CODE: [Copy to clipboard]@echo off set /p name=< 1.txt ren 2.txt %name%