dqcmjx 当前离线
列兵
@echo off&setlocal enabledelayedexpansion&pushd %~dp0 set var=&for /f "delims=" %%i in (a.txt) do set "var=!var!%%i"&set "var=!var: =!" :lp echo %var:~,15%&set "var=%var:~15%" if defined var goto lp pause复制代码
TOP
ruoru376 当前离线
上等兵
CrLf 当前离线
论坛巡查
1>1/* :Bat+JScript @echo off cscript -nologo -e:jscript "%~0" <a.txt >b.txt pause & exit /b */ WSH.Echo( WSH.StdIn.ReadAll().replace(/.{15}/gm,"$&\r\n") )复制代码