联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
Originally posted by Hanyeguxing at 2010-3-9 19:30: 需要处理的文本内容少的时候可以用set/p 多的时候使用sed等命令删除文本中的换行回车符 Last edited by Hanyeguxing on 2010-3-9 at 19:56 ]
@echo off for /f "delims=" %%i in (z:\work1\A.txt) do set/p=%%i<NUL>>Z:\work_OK\memo.txt
@echo off for /f "delims=" %%i in (z:\work1\A.txt) do call set a=%%a%%%%i echo %a%>>Z:\work_OK\memo.txt
Originally posted by Hanyeguxing at 2010-3-11 14:31: 方法有很多种,例如: @echo off for /f "delims=" %%i in (z:\work1\A.txt) do set/p=%%i<NUL>>Z:\work_OK\memo.txt 或是 @echo off for /f "deli ...
@echo off for /f "deli ...