本帖最后由 cobat 于 2015-3-6 23:43 编辑
原来可以这么做.- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%a in ('type "a.txt"') do (
- for %%b in (%%a) do (
- set "i=%%b"
- for /l %%c in (1,1,9) do (
- for %%d in ("!i:%%c=" "!") do set "j=!j!%%c"
- set "j=!j:~,-1!"
- )
- set "j=!j!000"
- <nul set /p "o=!j:~,3! "
- set "j="
- )
- echo,
- )
- pause
复制代码
|