本帖最后由 zaqmlp 于 2019-5-11 18:19 编辑
- @echo off
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /a-d/b/s "LC02-*"') do (
- if "%%~nxa" neq "%~nx0" (
- set "file=%%a"
- set "name=%%~nxa"
- setlocal enabledelayedexpansion
- echo;"!file!" --^> "LC08.1-!name:*-=!"
- ren "!file!" "LC08.1-!name:*-=!"
- endlocal
- )
- )
- echo;%info%
- pause
复制代码
|