右键菜单是日常使用电脑中经常需要用到的,所以如果能把一些选项添加进右键菜单的话就方便多了,比如最近有使用win7系统的朋友问说,要如何将“显示隐藏文件和系统文件”添加到右键菜单中,针对这个问题,跟大家带来具体的添加方法,希望对有需要的朋友有帮助。
1、开记事本,将下面的代码拷贝进去: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.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.SendKeys "{F5}+{F10}e"
'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformation
end if
Set WSHShell = Nothing
WScript.Quit(0)
2、复制代码另存为SuperHidden.vbs文件(选择保存-格式选择所有文件,文件名输入SuperHidden.vbs),并拷贝到Windows目录下(也可以是任意目录)
3、另外新建一个文档文件,输入以下代码: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"="C:\\WINDOWS\\SuperHidden.vbs"
"command"="Show/Hide Hidden Files"
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"
4、复制代码其中倒数第三行红色的部分是你安装Windows的位置,或者vbs脚本所在位置,倒数第二行蓝色的部分可以修改为你喜欢的文字
5、保存为.reg注册表文件,双击导入注册表即可。
关于Win7系统下如何将“显示隐藏文件和系统文件”添加至右键菜单中就跟大家介绍到这边了,感兴趣的用户可参照上面的方法进行操作吧,希望帮助到大家。
网友评论