Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Windows 7系統教程 >> Win7系統應用技巧 >> Win 7將顯示隱藏文件的命令添加進右鍵菜單

Win 7將顯示隱藏文件的命令添加進右鍵菜單

日期:2017/1/18 14:00:01      編輯:Win7系統應用技巧

 有朋友在求助區問如何添加“顯示隱藏文件和系統文件”到右鍵菜單,恰好搜到了方法,拿出來共享一下,希望對有需要的朋友有幫助。

方法很簡單,

Step 1 打開記事本,將下面的代碼拷貝進去:Dim WSHShell

Set WSHShell = WScript.CreateObject("WScript.Shell")

sTitle1 = "SSH=0"

sTitle2 = "SSH=1"

if WSHShell.RegRead("HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden") = 1 then

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "0", "REG_DWord"

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "2", "REG_DWORD"

WSHShell.SendKeys "{F5}+{F10}e"

'WSHShell.Popup "Poof, they're gone!", 1, sTitle1, vbInformation

else

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowSuperHidden", "1", "REG_DWORD"

WSHShell.RegWrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden", "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_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]

@="{00000000-0000-0000-0000-000000000012}"

[HKEY_CLASSES_ROOTCLSID{00000000-0000-0000-0000-000000000012}InPRocServer32]

Copyright © Windows教程網 All Rights Reserved