处于桌面或者文件夹内时,右键菜单中添加“显示/隐藏 隐藏文件”选项,达到快速设置是否显示系统隐藏文件。
C:\Windows\下新建文本文件,填入下面的内容,保存为hidefile.vbs;(下载该文件:hidefile.vbs)
Dim WSHShell Set WSHShell = WScript.CreateObject("WScript.Shell") sTitle1 = "SSH=0" sTitle2 = "SSH=1" if WshSHell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden") = 1 then WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD" WshSHell.SendKeys "{F5}" else WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD" WshSHell.SendKeys "{F5}" end if Set WSHShell = Nothing WScript.Quit(0)
运行注册表编辑器,打开以下位置;
HKEY_CLASSES_ROOT\Directory\Background\shell
新建项“HideFile”,默认值填写“显示/隐藏 隐藏文件”;
在HideFile上右键新建项“Command”,默认值填写“WScript.exe C:\Windows\hidefile.vbs”
文章评论
不错,必须顶一下!
学习
来看看,感谢分享