回复 tmplinshi
这次能处理了,但是不是全部排到一起的,就是不别按10个为一行,而是全部连到一 ...
wh1234567 发表于 2012-11-18 17:54 - @echo off
- (for /f "tokens=* delims=0123456789 " %%a in (a.txt) do (
- set str=%%a
- setlocal enabledelayedexpansion
- for /l %%a in (0 1 9) do set str=!str:%%a=,!
-
- set str_=
- for %%a in (!str!) do set str_=!str_!,%%a
- set /p =!str_:~1!
-
- endlocal
- )) <nul >new.txt
- pause
复制代码
|