回复 1# wxr0514
请将代码用括起来,配合论坛管理。- @echo off&setlocal enabledelayedexpansion
- for /f "skip=4 tokens=2 delims=|" %%i in (Data201110090064011.txt) do (
- set baodanghao=%%i
- for /f "delims=" %%x in (Data201110090064011.txt) do (
- set newtxt=%%x
- for %%n in (!baodanghao!) do set newtxt=!newtxt:%%n=000000123!
- echo !newtxt!>>c.txt
- )
- move /y c.txt Data201110090064011.txt
- pause
- goto :eof
- )
复制代码
|