win7 64位右鍵添加顯示隱藏系統文件和文件擴展名
一、新建一個文檔,輸入如下代碼并另存為:SuperHidden.reg
01
REGEDIT4
02
[HKEY_CLASSES_ROOT/Directory/Background/shellex/ContextMenuHandlers/SuperHidden]
03
@="{00000000-0000-0000-0000-000000000012}"
04
[HKEY_CLASSES_ROOT/CLSID/{00000000-0000-0000-0000-000000000012}/InProcServer32]
05
@=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,/
06
68,64,6f,63,76,77,2e,64,6c,6c,00
07
"ThreadingModel"="Apartment"
08
[HKEY_CLASSES_ROOT/CLSID/{00000000-0000-0000-0000-000000000012}/Instance]
09
"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"
10
[HKEY_CLASSES_ROOT/CLSID/{00000000-0000-0000-0000-000000000012}/Instance/InitPropertyBag]
11
"method"="ShellExecute"
12
"Param1"="SuperHidden.vbs"
13
"command"="顯示/隱藏系統文件+擴展名"
14
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"
15
[HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced]
16
"ShowSuperHidden"=dword:00000000
17
"Hidden"=dword:00000002
二、在新建一個文檔,輸入代碼后另存為:SuperHidden.vbs
01
'Show/Hide System Files
02
Dim WSHShell
03
Set WSHShell = WScript.CreateObject("WScript.Shell")
04
sTitle1 = "SSH=0"
05
sTitle2 = "SSH=1"
06
if WSHShell.RegRead("HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/ShowSuperHidden") = 1 then
07
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/ShowSuperHidden", "0", "REG_DWORD"
08
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Hidden", "2", "REG_DWORD"
09
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/HideFileExt", "1", "REG_DWORD"
10
WSHShell.RegWrite "HKCR/CLSID/{00000000-0000-0000-0000-000000000012}/Instance/InitPropertyBag/command", "顯示系統文件+擴展名", "REG_SZ"
11
WSHShell.SendKeys "{F5}+{F10}e"
12
'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformation
13
else
14
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/ShowSuperHidden", "1", "REG_DWORD"
15
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/Hidden", "1", "REG_DWORD"
16
WSHShell.RegWrite "HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Advanced/HideFileExt", "0", "REG_DWORD"
17
WSHShell.RegWrite "HKCR/CLSID/{00000000-0000-0000-0000-000000000012}/Instance/InitPropertyBag/command", "隱藏系統文件+擴展名", "REG_SZ"
18
WSHShell.SendKeys "{F5}+{F10}e"
19
'WSHShell.Popup "Here they are!", 1, sTitle2, vbInformation
20
end if
21
Set WSHShell = Nothing
22
WScript.Quit(0)
三、將SuperHidden.vbs拷貝到C盤windows目錄下即可,然后雙擊SuperHidden.reg修改注冊表,最后重啟一下電腦就可以了(如果安裝的殺毒軟件彈出阻止對話框時,請勾上總是允許,并將下方的以后總是允許的勾勾上就可以了)。