- 欢迎访问起航教学!
Windows 7将显示隐藏文件命令添加进右键菜单
12-14 18:28:28 分类:Win7技巧 浏览次数: 149次
标签:Win7技巧大全,http://www.qihang56.com
Windows 7将显示隐藏文件命令添加进右键菜单,
有朋友在求助区问如何添加“显示隐藏文件和系统文件”到右键菜单,恰好搜到了方法,拿出来共享一下,希望对有需要的朋友有帮助。
方法很简单,
Step 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)
复制代码另存为SuperHidden.vbs文件(选择保存-格式选择所有文件,文件名输入SuperHidden.vbs),并拷贝到Windows目录下(也可以是任意目录)
Step2 另外新建一个文档文件,输入以下代码: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}"
复制代码其中倒数第三行红色的部分是你安装Windows的位置,或者vbs脚本所在位置,倒数第二行蓝色的部分可以修改为你喜欢的文字
保存为.reg注册表文件,双击导入注册表.
本文来自 http://www.qihang56.com 谢谢支持
有朋友在求助区问如何添加“显示隐藏文件和系统文件”到右键菜单,恰好搜到了方法,拿出来共享一下,希望对有需要的朋友有帮助。
方法很简单,
Step 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)
复制代码另存为SuperHidden.vbs文件(选择保存-格式选择所有文件,文件名输入SuperHidden.vbs),并拷贝到Windows目录下(也可以是任意目录)
Step2 另外新建一个文档文件,输入以下代码: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}"
复制代码其中倒数第三行红色的部分是你安装Windows的位置,或者vbs脚本所在位置,倒数第二行蓝色的部分可以修改为你喜欢的文字
保存为.reg注册表文件,双击导入注册表.
本文来自 http://www.qihang56.com 谢谢支持
相关热词搜索:
- ·上一篇:开机--POST自检
- ·下一篇:解决老主板添加的USB接口不可用问题
分享到:
收藏
评论排行
Win7技巧 热门排行
- · Win7下如何正常安装使用AutoCAD2017
- · Windows7下安装VS2017提示“You have
- · Windows7关机速度提升
- · Ubuntu9.10\Win7双系统 重装后修复GRU
- · Windows7系统更改无线网络优先级的方法
- · 轻松玩转Win 7中“轻松访问中心”
- · Windows 7新增组合键
- · Win7系统如何隐藏或取消隐藏文件夹
- · 关闭Windows7显示器校准
- · Win 7系统怎样显示文件类型扩展名
- · Windows 7开机启动项介绍
- · Win7 eSATA接口优化
- · Windows 7轻松传送文件
- · 解决Win7忘记登入密码问题
- · Msconfig管理Win7引导配置
- · 教你硬盘安装win7系统详细图文教程
- · win7玩游戏无法全屏的一些解决方法
- · Win7下5种方式打开资源管理器
- · 教程:Windows7下硬盘安装BT4方法
- · Win7/Vista/XP下两个切换IP地址的批处
- · Windows 7主题包中的壁纸从哪儿来
- · Windows 7密码重设盘的内部原理浅析
- · Windows 7升级的八大步骤
- · 清理和关闭多余的Win7系统服务