概述
测试环境:windowsXP
作者:鹏飞万里
当我们要操作隐藏的文件夹时,通常可以在“控制面板”的“文件夹选项”-->“查看”中选择“显示所有的文件和文件夹”。但有时候这样的操作并不奏效。无论试多少次,“不显示隐藏的文件和文件夹”和“显示所有的文件和文件夹”前面的单选按钮都是选中状态。
这是因为注册表中多了一个小小的空格。可能是病毒惹的祸。
比较下面两行内容,你能看出有什么不同吗?
"
ValueName
"
=
"
Hidden
"
" ValueName " = " Hidden "
" ValueName " = " Hidden "
呵呵,第一行是错误的注册表值,第二行是正确的注册表值。看出问题了吧?
可以按以下方法修复此故障。
“开始”-->“运行”-->"regedit",依次展开
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL](如果没有这样的项,则新建)
在右面框中的字符串“valuename”的值修改为"hidden"(注意!不是"hidden ",括号中的这个多了一个空格)。
呵呵,就这么简单。
原理是如此,如果你很懒,而你的操作系统又正好是windowsXP,你可以打开记事本,复制下面的代码并另存为folderOption.reg。双击即可导入注册表。这个文件兼治你控制面板找不到“文件夹选项”的症状。注意,复制时要保证"windows Registry Editor Version 5.00" 在第一行。还有,不要丢了最后的两个回车。
修复注册表:
Windows Registry Editor Version
5.00
;此注册表用于修复显示不出隐藏文件、控制面板的“文件夹选项”失踪的故障。适用于windowsXP 环境
;欢迎光临我的博客:http: // diylab.cnblogs.com
;下面使当前用户显示“文件夹选项”
[HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL]
" RegPath " = " Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced "
" CheckedValue " = dword: 00000001
" ValueName " = " Hidden "
;下面使本机用户显示“文件夹选项”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL]
" RegPath " = " Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced "
" CheckedValue " = dword: 00000001
" ValueName " = " Hidden "
;下面是在控制面板中添加文件夹选项
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerControlPanelNameSpace{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}]
@ = " Folder Options "
;下面是文件夹选项命令的相关数据
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}]
@ = " 文件夹选项 "
" InfoTip " = hex( 2 ): 40 , 00 , 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 , 00 ,5c,
00 , 53 , 00 , 48 , 00 , 45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,2c, 00 ,
2d, 00 , 32 , 00 , 32 , 00 , 39 , 00 , 32 , 00 , 34 , 00 , 00 , 00
" {305CA226-D286-468e-B848-2B2E8E697B74} 2 " = dword: 00000001
" LocalizedString " = hex( 2 ): 40 , 00 , 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 ,
00 ,5c, 00 , 53 , 00 , 48 , 00 , 45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,2d, 00 , 32 , 00 , 32 , 00 , 39 , 00 , 38 , 00 , 35 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}DefaultIcon]
@ = 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 , 00 ,5c, 00 , 53 , 00 , 48 , 00 ,
45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,2c, 00 ,2d, 00 , 32 , 00 , 31 ,
00 , 30 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}Shell]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellOpen]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellOpenCommand]
@ = hex( 2 ): 72 , 00 , 75 , 00 ,6e, 00 , 64 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 65 , 00 , 78 , 00 , 65 ,
00 , 20 , 00 , 73 , 00 , 68 , 00 , 65 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,4f, 00 , 70 , 00 , 74 , 00 , 69 , 00 ,6f, 00 ,6e, 00 , 73 , 00 ,5f, 00 , 52 , 00 , 75 , 00 ,6e, 00 , 44 ,
00 ,4c, 00 ,4c, 00 , 20 , 00 , 30 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellRunAs]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellRunAsCommand]
@ = hex( 2 ): 72 , 00 , 75 , 00 ,6e, 00 , 64 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 65 , 00 , 78 , 00 , 65 ,
00 , 20 , 00 , 73 , 00 , 68 , 00 , 65 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,4f, 00 , 70 , 00 , 74 , 00 , 69 , 00 ,6f, 00 ,6e, 00 , 73 , 00 ,5f, 00 , 52 , 00 , 75 , 00 ,6e, 00 , 44 ,
00 ,4c, 00 ,4c, 00 , 20 , 00 , 30 , 00 , 00 , 00
" Extended " = ""
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellFolder]
" Attributes " = dword: 00000000
;此注册表用于修复显示不出隐藏文件、控制面板的“文件夹选项”失踪的故障。适用于windowsXP 环境
;欢迎光临我的博客:http: // diylab.cnblogs.com
;下面使当前用户显示“文件夹选项”
[HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL]
" RegPath " = " Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced "
" CheckedValue " = dword: 00000001
" ValueName " = " Hidden "
;下面使本机用户显示“文件夹选项”
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL]
" RegPath " = " Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced "
" CheckedValue " = dword: 00000001
" ValueName " = " Hidden "
;下面是在控制面板中添加文件夹选项
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerControlPanelNameSpace{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}]
@ = " Folder Options "
;下面是文件夹选项命令的相关数据
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}]
@ = " 文件夹选项 "
" InfoTip " = hex( 2 ): 40 , 00 , 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 , 00 ,5c,
00 , 53 , 00 , 48 , 00 , 45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,2c, 00 ,
2d, 00 , 32 , 00 , 32 , 00 , 39 , 00 , 32 , 00 , 34 , 00 , 00 , 00
" {305CA226-D286-468e-B848-2B2E8E697B74} 2 " = dword: 00000001
" LocalizedString " = hex( 2 ): 40 , 00 , 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 ,
00 ,5c, 00 , 53 , 00 , 48 , 00 , 45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,2d, 00 , 32 , 00 , 32 , 00 , 39 , 00 , 38 , 00 , 35 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}DefaultIcon]
@ = 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 , 73 , 00 , 79 , 00 , 73 , 00 , 74 , 00 , 65 , 00 ,6d, 00 , 33 , 00 , 32 , 00 ,5c, 00 , 53 , 00 , 48 , 00 ,
45 , 00 ,4c, 00 ,4c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,2c, 00 ,2d, 00 , 32 , 00 , 31 ,
00 , 30 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}Shell]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellOpen]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellOpenCommand]
@ = hex( 2 ): 72 , 00 , 75 , 00 ,6e, 00 , 64 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 65 , 00 , 78 , 00 , 65 ,
00 , 20 , 00 , 73 , 00 , 68 , 00 , 65 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,4f, 00 , 70 , 00 , 74 , 00 , 69 , 00 ,6f, 00 ,6e, 00 , 73 , 00 ,5f, 00 , 52 , 00 , 75 , 00 ,6e, 00 , 44 ,
00 ,4c, 00 ,4c, 00 , 20 , 00 , 30 , 00 , 00 , 00
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellRunAs]
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellRunAsCommand]
@ = hex( 2 ): 72 , 00 , 75 , 00 ,6e, 00 , 64 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 65 , 00 , 78 , 00 , 65 ,
00 , 20 , 00 , 73 , 00 , 68 , 00 , 65 , 00 ,6c, 00 ,6c, 00 , 33 , 00 , 32 , 00 ,2e, 00 , 64 , 00 ,6c, 00 ,6c, 00 ,
2c, 00 ,4f, 00 , 70 , 00 , 74 , 00 , 69 , 00 ,6f, 00 ,6e, 00 , 73 , 00 ,5f, 00 , 52 , 00 , 75 , 00 ,6e, 00 , 44 ,
00 ,4c, 00 ,4c, 00 , 20 , 00 , 30 , 00 , 00 , 00
" Extended " = ""
[HKEY_CLASSES_ROOTCLSID{6DFD7C5C - 2451 - 11d3 - A299 - 00C04F8EF6AF}ShellFolder]
" Attributes " = dword: 00000000
最后
以上就是文艺老鼠为你收集整理的解决修改“文件夹选项”后仍不能显示隐藏文件一例的全部内容,希望文章能够帮你解决解决修改“文件夹选项”后仍不能显示隐藏文件一例所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复