CODE: [Copy to clipboard]@echo off for /f "usebackq tokens=1-2 delims= " %%a in ("C:\test\a.txt") do ( sed "s/%%a/%%b/g" b.txt )