右鍵菜單是日常使用電腦中經(jīng)常需要用到的,所以如果能把一些選項添加進右鍵菜單的話就方便多了,比如最近有使用win7系統(tǒng)的朋友問說,要如何將“顯示隱藏文件和系統(tǒng)文件”添加到右鍵菜單中,針對這個問題,跟大家?guī)砭唧w的添加方法,希望對有需要的朋友有幫助。
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、復(fù)制代碼另存為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、復(fù)制代碼其中倒數(shù)第三行紅色的部分是你安裝Windows的位置,或者vbs腳本所在位置,倒數(shù)第二行藍色的部分可以修改為你喜歡的文字
5、保存為.reg注冊表文件,雙擊導(dǎo)入注冊表即可。
關(guān)于Win7系統(tǒng)下如何將“顯示隱藏文件和系統(tǒng)文件”添加至右鍵菜單中就跟大家介紹到這邊了,感興趣的用戶可參照上面的方法進行操作吧,希望幫助到大家。
網(wǎng)友評論