|Here are the contents of the batch file: |
@echo off > new.txt & setLocal enableDELAYedeXpansion
for /f "tokens=* delims= " %%a in (newfile.txt) do (
if !S! neq . (
>> new.txt echo.%%a.
) else (
>> new.txt echo.%%a
So newfile.txt only contains the following line.
Both files are 1kb
So because the newfile.txt already has a dot after the 6, it's adding another dot.