今天在删除右键菜单的时候误删了对文件夹双击打开的注册表,导致了双击无法打开文件夹。这里直接说一下我如何恢复注册表的:
首先是从博客:https://blog.csdn.net/happymagic/article/details/40185847内转载的知识
1、鼠标右键桌面空白处,新建菜单中的项目在注册表中的位置 [HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Discardable/PostSetup/ShellNew]
2、鼠标右键文件,弹出的菜单明细在注册表中的位置
[HKEY_CLASSES_ROOT/*/shellex/ContextMenuHandlers]
3、鼠标右键文件夹,弹出的菜单明细在注册表中的位置
[HKEY_CLASSES_ROOT/Directory/shellex/ContextMenuHandlers]
4、鼠标右键在IE浏览器里,弹出的菜单明细在注册表中的位置
[HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/MenuExt]
方法一:
我找同学把他注册表 [计算机\HKEY_CLASSES_ROOT\Folder\shellex] 和 [计算机\HKEY_CLASSES_ROOT\Folder\shell] 的内容导出发给我, 右键shell(shellex)文件, 导出.
然后双击这两个文件, 选择替换
选择继续, 更改注册表值.
然后文件夹双击打开又能使用了
方法二:
新建两个txt文件,然后分别复制内容并且运行:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell]
[HKEY_CLASSES_ROOT\Folder\shell\explore]
"LaunchExplorerFlags"=dword:00000018
"MultiSelectModel"="Document"
"ProgrammaticAccessOnly"=""[HKEY_CLASSES_ROOT\Folder\shell\explore\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"[HKEY_CLASSES_ROOT\Folder\shell\open]
"MultiSelectModel"="Document"[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
65,00,00,00
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"[HKEY_CLASSES_ROOT\Folder\shell\opennewprocess]
"ExplorerHost"="{ceff45ee-c862-41de-aee2-a022c81eda92}"
"Extended"=""
"LaunchExplorerFlags"=dword:00000003
"MUIVerb"="@shell32.dll,-8518"
"MultiSelectModel"="Document"[HKEY_CLASSES_ROOT\Folder\shell\opennewprocess\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"[HKEY_CLASSES_ROOT\Folder\shell\opennewtab]
"LaunchExplorerFlags"=dword:00000021
"MUIVerb"="@windows.storage.dll,-8519"
"MultiSelectModel"="Document"
"OnlyInBrowserWindow"=""
"OnlyInTabWindow"=""[HKEY_CLASSES_ROOT\Folder\shell\opennewtab\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
"LaunchExplorerFlags"=dword:00000001
"MUIVerb"="@windows.storage.dll,-8517"
"MultiSelectModel"="Document"
"OnlyInBrowserWindow"=""[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"[HKEY_CLASSES_ROOT\Folder\shell\pintohome]
"AppliesTo"="System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True"
"MUIVerb"="@shell32.dll,-51377"[HKEY_CLASSES_ROOT\Folder\shell\pintohome\command]
"DelegateExecute"="{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}"
和
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shellex]
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers]
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\AccExt]
@="{2A118EB5-5797-4F5E-8B3D-F4ECBA3C98E4}"[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Library Location]
@="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\QQShellExt]
@="{53D2405C-48AB-4C8A-8F59-CE0610F13BBC}"[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}]
@="Start Menu Pin"[HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers]
[HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers\{BD472F60-27FA-11cf-B8B4-444553540000}]
@=""