- @echo off
- set "s=HKCU\Software\DownloadManager"
- for /f "delims=" %%a in ('reg query "%s%"') do (
- for /f "tokens=*delims=0123456789" %%b in ("%%~nxa") do (
- if "%%b" == "" echo,reg delete "%%a" /f
- )
- )
- pause
复制代码
- @echo off
- set "s=HKEY_CURRENT_USER\Software\DownloadManager"
- set "re=%s:\=\\%\\[0-9][0-9]*"
- for /f "delims=" %%a in ('reg query "%s%"^|findstr /ire %re%') do (
- echo,reg delete "%%a" /f
- )
- pause
复制代码
|