i use piece of yours code, but i'm not able to finish it.
please help me...i'm going crazy
Code: Select all
for /f "tokens=1 delims=" %%x in ('type temp3.txt') do (
for /l %%a in (1,1,31) do if "!%%x:~-1!"==" " set "%%x=!%%x:~0,-1!"
echo %%x >> temp4.txt
)