- @echo off
- mode con lines=3000
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- set n=100000
- for /f "delims=" %%a in ('dir /a-d/b *.mpg') do (
- set /a n+=1
- set "file=%%a"
- set "name=%%~nxa"
- setlocal enabledelayedexpansion
- echo;"!file!" --^> "999999!n:~-4!-!name!"
- ren "!file!" "999999!n:~-4!-!name!"
- endlocal
- )
- echo;%info%
- pause
复制代码
|