win7无法显示隐藏文件 无法找到脚本文件hidefile.vbs

    当鼠标右键单击显示隐藏文件,弹出无法找到脚本文件hidefile.vbs的提示时,可以在记事本里写下以下内容,保存为hidefile.vbs(注意后缀名要改成vbs),并放到C:\Windows文件夹下。
    或者点击工具,在文件夹选项中,把“隐藏受保护的操作系统文件”前面的勾取消,并选择下面的“显示隐藏的文件、文件夹和驱动器”,再点确定就行。
以下是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}+{F10}e"
else
WshSHell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD"
WshSHell.SendKeys "{F5}+{F10}e"
end if

Set WSHShell = Nothing
WScript.Quit(0)

猜你喜欢

转载自hello-june.iteye.com/blog/2190601
今日推荐