for /f "tokens=1-26" in (y.txt) do (......可以解决空格问题具体可以看for /?
按BY。
for /f %%i in (x.txt) do (改成for /f "tokens=*" %%i in (x.txt) do (