答案 0 :(得分:0)
@echo off
setlocal enabledelayedexpansion
REM get number of files:
set count=0
for %%a in (*.jpg) do set /A count+=1
REM rename them (decreasing by one):
for /l %%a in (1,1,%count%) do (
set /a new=%%a-1
ECHO ren %%a.jpg !new!.jpg
)
REM rename 0 to max
ECHO ren 0.jpg %count%.jpg
在您验证它后,删除ECHO
。