- @echo off&for /f "delims=" %%i in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageDetect"^|findstr /i /e "MediaPlayback SMB NetFx3 DirectX- Desktop-Required- DirectPlay"') do (del /f /q "%%a")&pause
复制代码 不知道这样行不行 |