您的位置:首页 > 软件教程 > 教程 > Win 7将显示隐藏文件的命令添加进右键菜单

Win 7将显示隐藏文件的命令添加进右键菜单

来源:互联网 | 时间:2015-03-25 20:43:20 | 阅读:181 |  标签: win7   | 分享到:

 有朋友在求助区问如何添加“显示隐藏文件和系统文件”到右键菜单,恰好搜到了方法,拿出来共享一下,希望对有需要的朋友有帮助。

方法很简单,

Step 1 打开记事本,将下面的代码拷贝进去:Dim WSHShell

Set WSHShell = WScript.CreateObject("WScript.Shell")

sTitle1 = "SSH=0"

sTitle2 = "SSH=1"

if WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden") = 1 then

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "0", "REG_DWord"

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2", "REG_DWORD"

WSHShell.SendKeys "{F5}+{F10}e"

'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformation

else

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "1", "REG_DWORD"

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "1", "REG_DWORD"

WSHShell.SendKeys "{F5}+{F10}e"

'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformation

end if

Set WSHShell = Nothing

WScript.Quit(0)

复制代码另存为SuperHidden.vbs文件(选择保存-格式选择所有文件,文件名输入SuperHidden.vbs),并拷贝到Windows目录下(也可以是任意目录)

Step2 另外新建一个文档文件,输入以下代码:REGEDIT4

[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]

@="{00000000-0000-0000-0000-000000000012}"

[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InPRocServer32]

小编推荐阅读

好特网发布此文仅为传递信息,不代表好特网认同期限观点或证实其描述。

相关视频攻略

更多

扫二维码进入好特网手机版本!

扫二维码进入好特网微信公众号!

本站所有软件,都由网友上传,如有侵犯你的版权,请发邮件[email protected]

湘ICP备2022002427号-10 湘公网安备:43070202000427号© 2013~2025 haote.com 好特网