您的位置:首頁 > 軟件教程 > 教程 > Win 7將顯示隱藏文件的命令添加進(jìn)右鍵菜單

Win 7將顯示隱藏文件的命令添加進(jìn)右鍵菜單

來源:互聯(lián)網(wǎng) | 時間:2015-03-25 20:43:20 | 閱讀:194 |  標(biāo)簽: win7   | 分享到:

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

方法很簡單,

Step 1 打開記事本,將下面的代碼拷貝進(jìn)去: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)

復(fù)制代碼另存為SuperHidden.vbs文件(選擇保存-格式選擇所有文件,文件名輸入SuperHidden.vbs),并拷貝到Windows目錄下(也可以是任意目錄)

Step2 另外新建一個文檔文件,輸入以下代碼:REGEDIT4

[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSuperHidden]

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

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

小編推薦閱讀

好特網(wǎng)發(fā)布此文僅為傳遞信息,不代表好特網(wǎng)認(rèn)同期限觀點或證實其描述。

相關(guān)視頻攻略

更多

掃二維碼進(jìn)入好特網(wǎng)手機(jī)版本!

掃二維碼進(jìn)入好特網(wǎng)微信公眾號!

本站所有軟件,都由網(wǎng)友上傳,如有侵犯你的版權(quán),請發(fā)郵件[email protected]

湘ICP備2022002427號-10 湘公網(wǎng)安備:43070202000427號© 2013~2025 haote.com 好特網(wǎng)