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

來源:互聯網
上載者:User

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

  方法很簡單,

  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]

  @=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_ROOTCLSID{00000000-0000-0000-0000-000000000012}Instance]

  "CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"

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

  "method"="ShellExecute"

  "Param1"="C:WINDOWSSuperHidden.vbs"

  "command"="Show/Hide Hidden Files"

  "CLSID"="{13709620-C279-11CE-A49E-444553540000}"

  複製代碼其中倒數第三行紅色的部分是你安裝Windows的位置,或者vbs指令碼所在位置,倒數第二行藍色的部分可以修改為你喜歡的文字

  儲存為.reg註冊表檔案,雙擊匯入註冊表.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.