| @echo off&setlocal enabledelayedexpansion | | for /f "tokens=*" %%i in (1.txt) do ( | | set str=%%i | | set str1=!str:*a=a! | | call set tmp=%%str:!str1!=%% | | if not "!tmp!"=="" (call set str0=%%tmp:0=%%) else set "str0=" | | echo !str0!!str1! | | ) | | pauseCOPY |
补上。
[ 本帖最后由 inittab 于 2009-4-27 09:11 编辑 ] |