本帖最后由 weichenxiehou 于 2011-10-23 08:59 编辑
- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%a in (test.txt) do (
- for %%b in (%%a) do set "a=%%b"
- set "str=%%a"&for /l %%c in (1 1 10) do for %%d in (!a!) do set "str=!str: %%d=%%d!"
- for %%e in (!a!) do echo,!str:%%e=! !a!
- )
复制代码
|