删除注册表的某些信息

来源:百度知道 编辑:UC知道 时间:2024/06/12 02:57:16
刚才添加了一个注册表文件
注册表文件的内容是:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.doc]

@="Word.Document.8"

"Content Type"="application/msword"

[HKEY_CLASSES_ROOT\.doc\OpenWithList]

[HKEY_CLASSES_ROOT\.doc\OpenWithList\WordPad.exe]

@=""

[HKEY_CLASSES_ROOT\.doc\PersistentHandler]

@="{98de59a0-d175-11cd-a7bd-00006b827d94}"

[HKEY_CLASSES_ROOT\.doc\ShellNew]

[HKEY_CLASSES_ROOT\.doc\Word.Document.6]

[HKEY_CLASSES_ROOT\.doc\Word.Document.6\ShellNew]

"FileName"="winword.doc"

[HKEY_CLASSES_ROOT\.doc\Word.Document.8]

[HKEY_CLASSES_ROOT\.doc\Word.Document.8\ShellNew]

"FileName"="winword8.doc"

[HKEY_CLASSES_ROOT\.doc\WordDocument]

如果添加过程中有覆盖的话就很难撤销.

你这个应该是覆盖了.只能把新添的删除,不能恢复原来的.

删除方法:
====添加下面这个注册表文件====
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.doc]

只能重新加进原来的 注册表值

很简单的啦,在所有的根键值前加一个 - 号就可以了
比如我想删除这个键值 [HKEY_CLASSES_ROOT\.doc]

@="Word.Document.8"

"Content Type"="application/msword" 我就可以这么写
-[HKEY_CLASSES_ROOT\.doc]

@="Word.Document.8"

"Content Type"="application/msword"