|
楼主 |
发表于 2016-11-21 11:42:05
|
显示全部楼层
for /f "delims=" %%a in ('reg query HKCR /ve') do (for %%b in (Briefcase .contact .bmp .jnt .rtf .zip .rar .doc .docx .ppt .pptx .xls .xlsx) do (reg delete "%%a\%%b"))
第2段FOR是没错的,就看第1段如何改
是修改FOR命令还是REG QUERY命令
这段代码运行到最后就出现了
C:\Users\Administrator\Desktop>(reg delete "HKEY_CLASSES_ROOT\.xlsx" )
要永久性删除注册表项 HKEY_CLASSES_ROOT\.xlsx 吗(Yes/No)? n
操作已被用户取消。
C:\Users\Administrator\Desktop>(for %b in (Briefcase .contact .bmp .jnt .rtf .zip .rar .doc .docx .ppt .pptx .xls .xlsx) do (reg delete " (默认) REG_SZ (数值未设置)\%b" ) )
C:\Users\Administrator\Desktop>(reg delete " (默认) REG_SZ (数值未设置)\Briefcase" )
错误: 无效项名。
键入 "REG DELETE /?" 了解用法信息。 |
|