This post was updated 961 days ago and some of the ideas may be out of date.
代码放到文本中,把后缀改成bat,放到和图片的文件夹里,双击运行之即可。
[precode]
off&setlocal EnableDelayedExpansion
set a=1
for /f "delims=" %%i in ('dir /b *.jpg') do (
if not "%%~ni"=="%~n0" (
ren "%%i" "!a!.jpg"
set/a a+=1
)
)
[/precode]
参与讨论