当前位置:首页 > Win7教程

win7怎么显示隐藏文件?win7右键显示隐藏文件的方法

更新日期:2024-05-28 21:35来源:互联网

右键菜单是我们在日常使用电脑时经常会遇到的操作。我们可以根据个人需求向右键菜单中添加所需选项。下面我将向大家介绍如何将显示隐藏文件添加到右键菜单中。

win7怎么显示隐藏文件?win7右键显示隐藏文件的方法

首先,我们需要新建一个文档,并输入以下代码,然后另存为:SuperHidden.reg

win7怎么显示隐藏文件?win7右键显示隐藏文件的方法

```markdown

REGEDIT4

[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\SuperHidden]

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

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\InProcServer32]

@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\

68,64,6f,63,76,77,2e,64,6c,6c,00

"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance]

"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"

[HKEY_CLASSES_ROOT\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag]

"method"="ShellExecute"

"Param1"="SuperHidden.vbs"

"command"="显示/隐藏系统文件+扩展名"

"CLSID"="{13709620-C279-11CE-A49E-444553540000}"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

"ShowSuperHidden"=dword:00000000

"Hidden"=dword:00000002

```

接下来,新建另一个文档,输入代码后,另存为:SuperHidden.vbs

```markdown

‘Show/HideSystemFiles

Dim WSHShell

Set WSHShell = WScript.CreateObject(“WScript.Shell”)

sTitle1 = “SSH=0”

sTitle2 = “SSH=1”

if WSHShell.RegRead(“HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden”) = 1 then

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden”, “0”, “REG_DWORD”

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden”, “2”, “REG_DWORD”

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt”, “1”, “REG_DWORD”

WSHShell.RegWrite “HKCR\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\command”, “显示系统文件+扩展名”, “REG_SZ”

WSHShell.SendKeys “{F5}+{F10}e”

WSHShell.Popup “Poof, they’re gone!”, 1, sTitle1, vbInformation

else

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden”, “1”, “REG_DWORD”

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden”, “1”, “REG_DWORD”

WSHShell.RegWrite “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt”, “0”, “REG_DWORD”

WSHShell.RegWrite “HKCR\CLSID\{00000000-0000-0000-0000-000000000012}\Instance\InitPropertyBag\command”, “隐藏系统文件+扩展名”, “REG_SZ”

WSHShell.SendKeys “{F5}+{F10}e”

WSHShell.Popup “Here they are!”, 1, sTitle2, vbInformation

end if

Set WSHShell = Nothing

WScript.Quit(0)

```

将SuperHidden.vbs拷贝到C盘windows目录下,然后双击SuperHidden.reg进行注册表修改即可。如果杀毒软件弹出阻止对话框,请勾选总是允许并勾选以后总是允许。通过以上步骤,你就可以将显示隐藏文件添加到右键菜单中。希望这对你有所帮助。

薇薇和魔法之岛完整版免费版

薇薇和魔法之岛完整版免费版是一款横板的角色扮演游戏,以动作冒险玩法为主,体验丰富的游戏内容,在游戏里,玩家会与薇薇一起开始冒险,这个过程会遇见可怕的生物,玩家要
立即下载

系统下载排行