- @echo off
- mode con lines=3000
- set info=互助互利,支付宝扫码头像,感谢赞助
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /a-d/b/s') do (
- if "%%~nxa" neq "%~nx0" (
- set "f=%%a"
- set "n=%%~na"
- setlocal enabledelayedexpansion
- if "!n:~4!" equ "" (
- echo;!f!
- del /a /f /q "!f!"
- )
- endlocal
- )
- )
- echo;%info%
- pause
复制代码
|