本帖最后由 zaqmlp 于 2019-6-10 22:23 编辑
- @echo off
- mode con lines=3000
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set n=1000
- for /d %%a in (*) do (
- set /a n+=1
- set m=1000
- pushd "%%a"
- echo;------------------"%%a"------------------
- for /f "delims=" %%b in ('dir /a-d/b *.jpg *.bmp *.gif *.png') do (
- set /a m+=1
- set "f=%%b"
- setlocal enabledelayedexpansion
- echo;"!f!" --^> "中国 (!n:~-3!)-!m:~-3!%%~xb"
- ren "!f!" "中国 (!n:~-3!)-!m:~-3!%%~xb"
- endlocal
- )
- popd
- )
- echo;%info%
- pause
复制代码
|