复制代码 代码如下:
@echo off
:: 每6行拼接为一行,剩余的不够6行的显示在最后一行
::
::
set num=0
setlocal enabledelayedexpansion
for /f "delims=" %%i in (a.txt) do (
set /a num+=1
set str=!str! %%i
if !num! equ 6 echo !str! && set num=0 & set str=
)
if not "%str%"=="" echo %str%
pause
最后
以上就是机智小懒虫最近收集整理的关于字符串拼接的批处理的全部内容,更多相关字符串拼接内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复