@echo offsetlocal enabledelayedexpansionset n=10000for /f "delims=" %%a in ('dir/b *.jpg') do ( set /a n+=1 ren "%%a" "!n:~-4!.jpg")pause放到要处理的目录下运行..~!
FOR /F "tokens=1* delims=-" %%i IN ('DIR /b /a-d *-*.jpg') DO REN "%%i-%%j" "%%i.jpg"