- @echo off
- set "dst=e:\111\"
- md "%dst%" 2>nul
- for %%i in (*.trc) do (
- (for /f "usebackq tokens=1* delims=]" %%a in ("%%i") do (
- setlocal enabledelayedexpansion
- if not "%%b"=="" (
- set "str=]%%b"
- for %%a in (0 1 2 3 4 5 6 7 8 9 ^< ^>) do set "str=!str:%%a=!"
- )
- echo,%%a!str!
- endlocal
- ))>"%dst%%%i"
- )
复制代码
|