本帖最后由 garyng 于 2011-9-15 20:57 编辑
试试看这个:
它可以更短的~ | @echo off | | type AA.txt|find /i "SYS\SYS_" >>tmp.txt | | for /f "delims=\ tokens=6" %%i in ('type tmp.txt') do ( | | for /f "delims=_ tokens=2" %%h in ('echo %%i') do ( | | set a=%%h | | type nul>>%%h.exe | | ) | | ) | | del /q tmp.txt | | pause>nulCOPY |
|