回复 2# DAIC
非常感谢..我重新整合了代码..发现在删除的过程中遇到空格就会抛出这样的错误.- @echo off
-
- ::path
- ::keyword
- ::bakfile
- set path=HKEY_LOCAL_MACHINE\SOFTWARE\Adobe
- set keyword=net
- set bakfile=C:\reg4d36e972Bak.reg
-
- ::Bak up reg
- reg export %path% %bakfile%
-
- ::Iterate out put path\keywords and delete
- for /f "tokens=* delims= " %%i in ('reg query %path% /s /v %keyword% ^| findstr %path%') do (
- echo %%i
- reg delete %%i /v %keyword%
- )
- ::"reg delete %%a /f"
- ::"reg delete
- pause
复制代码 HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe Bridge
错误: 无效语法。
键入 "REG DELETE /?" 了解用法信息。 |