2022年7月03日
-
@echo off
set a=0
setlocal EnableDelayedExpansion
dir /b .*.jpg | find /c /v "" >> . mp.txt
set /p c=<. mp.txt
del /a /f /q . mp.txt
for %%i in (*.jpg) do (
set /a a+=1
if !a! gtr %c% (goto aa)
echo !a!
echo %%i
ren "%%i" "!a!.jpg"
)
:aa
pause