⑴右键菜单是我们平常使用电脑时经常用到的操作,我们可以往右键菜单中添加个人需要的选项,下面小编就教大家怎么添加显示隐藏文件到右键菜单中。
⑵新建一个文档,输入如下代码,并另存为:SuperHidden.reg
⑶[code]REGEDIT[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]=“{----}”《/p》[HKEY_CLASSES_ROOTCLSID{----}InProcServer]=hex(:,,,,,,d,,f,f,,,c,,,,,,d,,,c,,,,f,,,,e,,c,c,“ThreadingModel”=“Apartment”[HKEY_CLASSES_ROOTCLSID{----}Instance]“CLSID”=“{ffe-ae-dc-ea-de}”[HKEY_CLASSES_ROOTCLSID{----}InstanceInitPropertyBag]“method”=“ShellExecute”“Param”=“SuperHidden.vbs”“mand”=“显示/隐藏系统文件+扩展名”“CLSID”=“{-C-CE-AE-}”[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced]“ShowSuperHidden”=dword:“Hidden”=dword:[/code]
⑷在新建一个文档,输入代码后,另存为:SuperHidden.vbs
⑸[code]‘Show/Hide System FilesDim WSHShellSet WSHShell = WScript.CreateObject(“WScript.Shell”sTitle = “SSH=”sTitle = “SSH=”if WSHShell.RegRead(“HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden” = thenWSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden”, “”, “REG_DWORD”WSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden”, “”, “REG_DWORD”WSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt”, “”, “REG_DWORD”WSHShell.RegWrite “HKCRCLSID{----}InstanceInitPropertyBagmand”, “显示系统文件+扩展名”, “REG_SZ”WSHShell.SendKeys “{F}+{F}e”’WSHShell.Popup “Poof, they‘re gone!”, , sTitle, vbInformationelseWSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden”, “”, “REG_DWORD”WSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden”, “”, “REG_DWORD”WSHShell.RegWrite “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt”, “”, “REG_DWORD”WSHShell.RegWrite “HKCRCLSID{----}InstanceInitPropertyBagmand”, “隐藏系统文件+扩展名”, “REG_SZ”WSHShell.SendKeys “{F}+{F}e”’WSHShell.Popup “Here they are!”, , sTitle, vbInformationend ifSet WSHShell = NothingWScript.Quit([/code]
⑹将SuperHidden.vbs拷贝到C盘windows目录下即可,然后双击SuperHidden.reg(放到任意位置即可,修改注册表,就可以了(如果安装的杀毒软件弹出阻止对话框时,请勾上总是允许,并将下方的以后总是允许的勾勾上就可以了;
⑺这里是同时“显示系统文件+扩展名”,但我们平时使用最多的应该是“显示/隐藏扩展名”,所以,将上面的代码去掉几行就可以了。如本人使用的,就只保留了“显示/隐藏扩展名”的功能;
⑻在SuperHidden.reg中去掉:
⑼[code]“Hidden”=dword:
⑽在SuperHidden.reg中去掉:
⑾[code]WSHShell.RegWrite《/code》 《code》“HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden”,《/code》 《code》“”,《/code》 《code》“REG_DWORD” [/code]
⑿[code]《code》WSHShell.RegWrite《/code》 《code》“HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden”,《/code》 《code》“”,《/code》 《code》“REG_DWORD” [/code]
⒀这样就可以了。
⒁如果你想把显示隐藏文件出现在右键菜单中,可以按照上述方法步骤进行操作,希望能对大家有帮助。