- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /a-d/b *.txt') do (
- set "base=%%~na"&set "file=%%a"
- setlocal enabledelayedexpansion
- echo;"!file!" --^> "!base:* =!%%~xa"
- ren "!file!" "!base:* =!%%~xa"
- endlocal
- )
- :end
- echo;%info%
- pause
- exit
复制代码
|