百科网

首页 > 科技数码

科技数码

Win7 64位右键添加显示/隐藏系统文件或文件扩展操作方法

科技数码佚名2023-01-18

很多用户在隐藏系统文件夹是都是使用Windows系统都是自带“隐藏文件和文件夹”和“隐藏已知文件类型的扩展名”,但这样设置起来需要点很多次,很是麻烦。下面小编就来很大家分享个简单的方法,只要将这些功能添加到鼠标右键,这样就能轻松搞定,免去多次点击。

一、新建一个文档,输入如下代码,并另存为:SuperHidden.reg

01[code]REGEDIT4[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]@="{00000000-0000-0000-0000-000000000012}"

 

 

二、在新建一个文档,输入代码后,另存为:SuperHidden.vbs

01[code]'Show/Hide System FilesDim WSHShellSet WSHShell = WScript.CreateObject("WScript.Shell")sTitle1 = "SSH=0"sTitle2 = "SSH=1"if WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden") = 1 thenWSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "0", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "1", "REG_DWORD"WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "显示系统文件 扩展名", "REG_SZ"WSHShell.SendKeys "{F5} {F10}e"'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformationelseWSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "1", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "1", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "0", "REG_DWORD"WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "隐藏系统文件 扩展名", "REG_SZ"WSHShell.SendKeys "{F5} {F10}e"'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformationend ifSet WSHShell = NothingWScript.Quit(0)[/code]复制代码[code]'Show/Hide System FilesDim WSHShellSet WSHShell = WScript.CreateObject("WScript.Shell")sTitle1 = "SSH=0"sTitle2 = "SSH=1"if WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden") = 1 thenWSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "0", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "1", "REG_DWORD"WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "显示系统文件 扩展名", "REG_SZ"WSHShell.SendKeys "{F5} {F10}e"'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformationelseWSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "1", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "1", "REG_DWORD"WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHideFileExt", "0", "REG_DWORD"WSHShell.RegWrite "HKCRCLSID{00000000-0000-0000-0000-000000000012}InstanceInitPropertyBagcommand", "隐藏系统文件 扩展名", "REG_SZ"WSHShell.SendKeys "{F5} {F10}e"'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformationend ifSet WSHShell = NothingWScript.Quit(0)[/code]

三、将SuperHidden.vbs拷贝到C盘windows目录下即可,然后双击SuperHidden.reg(放到任意位置即可),修改注册表,就可以了(如果安装的杀毒软件弹出阻止对话框时,请勾上总是允许,并将下方的以后总是允许的勾勾上就可以了)。