@echo off setlocal enabledelayedexpansion ( for /f "delims=" %%A in (1.txt) do ( set "s=%%A" echo,!s:~0,26! ) )>"%temp%\1" move /y "%temp%\1" 1.txt endlocal pause exit /b复制代码