不知是否是这样?- @echo off
- set ren=JABCDEFGHI
- for /f "delims=" %%a in ('dir /a-d-h-s /b *.jpg') do (
- set "jpg=%%a"
- setlocal enabledelayedexpansion
- for /l %%b in (0 1 9) do (
- for %%c in (!ren:%%b,1!) do set jpg=!jpg:%%b=%%c!
- )
- ren %%~sa "!jpg!"
- endlocal
- )
复制代码
|