win7怎么显示隐藏文件?win7右键显示隐藏文件的方法
更新日期:2024-05-24 08:11
来源:互联网
右键菜单是我们在日常使用电脑时经常会遇到的操作。通过往右键菜单中添加个人需要的选项,我们可以更加便捷地进行操作。下面我将分享如何将显示隐藏文件添加到右键菜单中。
首先,我们需要新建一个文档,并输入以下代码,然后另存为:SuperHidden.reg:
```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(放到任意位置即可)来修改注册表,完成以上操作后,就可以在右键菜单中看到显示隐藏文件的选项了。希望以上步骤对你有所帮助。
相关下载
【GHOST WIN10系统镜像下载】Win10 64位系统永久激活,高速优化 v2024
查看
W11专业版下载|W11系统专业版[永久激活] V2024
查看
Win7精简版下载|Win7 64位精简旗舰版(超流畅,带USB3.0驱动)v2024
查看
Win11原版系统下载|Win11 64位专业版官方ISO镜像 V2024
查看
Win10 ISO镜像下载2024最新|Win10 64位专业版ISO镜像[21H2最新版]
查看
Windows10精简版下载|Win10 LTSC 2024 64位精简纯净版
查看
Win11正式版镜像下载|Win11正式版系统镜像[64位专业版]
查看
Win11系统下载|Win11 64位正式版专业版原版ISO镜像
查看