- @echo off &setlocal enabledelayedexpansion
- for /r %%a in (*.txt) do (
- call:r %%a
- )
- goto:eof
- :r
- for /f %%i in ('smooth %1 ^|findstr model_name') do (
- set c=%%i
- set k=!c:~0,10!
- set v=!c:~10!
- if "!k!" equ "model_name" (
- if "!v!" neq "" (
- rename %1 !v!
- if errorlevel 0 (echo %1 to !v!) else (echo %1 to !v! ---- fail)
- goto:eof
- )
- )
- echo %1 ---- not found
- )
复制代码 https://pan.baidu.com/s/1o23mHiKZBrfNq_P73SVG9A
重在参与! |