- @echo off
- setlocal enabledelayedexpansion
- for /f "skip=4 tokens=*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace" ^|find/v "{11016101-E366-4D22-BC06-4ADA335C892B}"^|find/v "{1f4de370-d627-11d1-ba4f-00a0c91eedba}"^|find/v "{450D8FBA-AD25-11D0-98A8-0800361B1103}"^|find/v "{e17d4fc0-5564-11d1-83f2-00a0c90dc849}"') do (
- set "jg=%%a"
- set "jg=!jg: =!"
- set "jg=!jg:REG_=.!"
- for %%b in ("!jg!") do echo reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\%%~nb /f"
- )
- pause
复制代码 以上代码运行后提示系统找不到指定的注册表项或值。请高手指点 |