以管理员身份运行- @echo off
- set info=互助互利,支付宝扫码头像,感谢打赏
- rem 有问题,可加QQ956535081及时沟通
- title %info%
- set "fd=C:\Windows\servicing\Packages"
- if not exist "%fd%" (echo;"%fd%" no found&goto end)
- for /f "delims=" %%a in ('dir /a-d/b/s "%fd%\"') do (
- if "%%~nxa" neq "%~nx0" (
- set "name=%%~na"&set "f=%%a"&set "z="
- setlocal enabledelayedexpansion
- if /i "!name:MediaPlayback=!" neq "!name!" set z=1
- if /i "!name:SMB1=!" neq "!name!" set z=1
- if not defined z del /f /q "!f!"
- endlocal
- )
- )
- :end
- echo;%info%
- pause
- exit
复制代码
|