With this loop I can replace a text string in a text file.
But the output has some trailing white space and I can't find the cause of it.
for /f "tokens=* delims=" %%G in ('type "%cd%\test.txt"') do (
echo !lines!>> "%cd%\test2.txt" )
Who can help me?
Thx in advance