CODE: [Copy to clipboard]@echo off for /f "tokens=*" %%i in (a.txt) do ( set str=%%i call set str=%%str: =%% call echo %%str%% >>ss.txt ) pause