Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 右鍵選單加入常用網站:登錄表一鍵部署

編輯:Win7 系統應用技巧

桌面右鍵直達常用網站,效率直升

Windows 7 桌面右鍵選單支援自訂擴充。透過登錄表匯入 .reg 檔,即可在桌面空白處右鍵選單新增任意網站捷徑,如「Windows 7 之家」、常用後台、文件庫等,點擊直接以預設瀏覽器開啟。

製作專屬 .reg 檔案(三步驟)

  1. 新建記事本,貼入以下內容(修改紅字部分):
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\MySite]
@="Windows 7 之家"

[HKEY_CLASSES_ROOT\Directory\Background\shell\MySite\command]
@="iexplore.exe https://www.example.com"
  • MySite:內部鍵值名稱,英文無空格,唯一即可
  • @="Windows 7 之家":右鍵選單顯示的文字
  • iexplore.exe https://...:執行命令,可改為 chrome.exe、firefox.exe 或 start "" "https://..."(使用預設瀏覽器)
  1. 另存為 AddMySite.reg(編碼選 ANSI 或 UTF-16 LE)
  2. 雙擊執行 → 是 → 確定,即時生效

右鍵選單效果
圖:桌面右鍵選單新增「Windows 7 之家」選項

進階技巧:新增多個網站、加入圖示、建立子選單

  • 多個網站:在 .reg 中重複 [HKEY_CLASSES_ROOT\Directory\Background\shell\KeyName] 區塊,KeyName 不同即可
  • 指定圖示:在第一個區塊加入 "Icon"="C:\\Path\\To\\Icon.ico"
  • 建立子選單:建立主鍵 [HKEY_CLASSES_ROOT\Directory\Background\shell\MySites] 設 "SubCommands"="",再建立子鍵 [HKEY_CLASSES_ROOT\Directory\Background\shell\MySites\shell\Site1](需較深登錄表知識)
  • 僅資料夾右鍵顯示:將路徑改為 HKEY_CLASSES_ROOT\Directory\shell\...(移除 \Background)

移除已加入的選單項目

執行以下 .reg(將 KeyName 替換為你的鍵值名稱):

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\Background\shell\MySite]

善用此技巧,將常用後台、文件、雲端硬碟、監控儀表板全掛在右鍵選單,雙手不離鍵盤滑鼠,瀏覽效率大幅提升。

Copyright © Windows教程網 All Rights Reserved