【 已解 】 如何在登錄編輯自訂右鍵選單功能 增加「以Google Chromium開啟...」

【 已解 】 如何在登錄編輯自訂右鍵選單功能 增加「以Google Chromium開啟...」
OS:Win7
請問如何針僅對網頁捷徑點右鍵後的選單
增加「以Google Chromium開啟...」

因為我有用Ramdisk所以就算將Chromium設為預設瀏覽器
它還是使用預設路徑:C:\Users\UserName\AppData\Local\Chromium\User Data 做存取
不會使用Ramdisk的存取路徑D:\......\chrome.exe" --user-data-dir="Z:\\temp\\Chromium\\User Data

我想知道「網頁捷徑點右鍵後的選單」它的登錄檔位置,下面用??????表示
這是我猜想的.reg檔寫法:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\??????\以Google Chromium開啟]
@="以Google Chromium開啟..."

[HKEY_CLASSES_ROOT\??????\以Google Chromium開啟\Command]
@="D:\\......\\chrome.exe --user-data-dir=Z:\\temp\\Chromium\\User Data %1"

不知道登錄檔能用chrome.exe --user-data-dir=Z:\\temp\\Chromium\\User Data這指令嗎?





Windows7其他選單添加參考:

以記事本開啟...(&N).reg :

【 已解 】 如何在登錄編輯自訂右鍵選單功能 增加「以Google Chromium開啟...」
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Notepad]
@="以記事本開啟...(&N)"
"Icon"="%SystemRoot%\\system32\\notepad.exe"

[HKEY_CLASSES_ROOT\*\shell\Notepad\Command]
@="notepad %1"




(my範例)桌面右鍵選單新增快速開啟常用資料夾(程式捷徑夾、軟體夾).reg :

【 已解 】 如何在登錄編輯自訂右鍵選單功能 增加「以Google Chromium開啟...」
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\程式捷徑]
@="程式捷徑(&A)"
"Icon"="%SystemRoot%\\system32\\imageres.dll,154.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\程式捷徑\command]
@="explorer /root,D:\\Desktop2\\程式捷徑"


[HKEY_CLASSES_ROOT\Directory\Background\shell\軟體]
@="軟體(&S)"
"Icon"="%SystemRoot%\\system32\\SHELL32.dll,46.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\軟體\command]
@="explorer /root,D:\\Desktop2\\軟體"

         ↑ 綠色路徑為資料夾位置,自行修正.


我的電腦右鍵選單增加(命令提示字元、服務、控制台).reg :

【 已解 】 如何在登錄編輯自訂右鍵選單功能 增加「以Google Chromium開啟...」
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenDOSBox]
@="命令提示字元"
"Icon"="%SystemRoot%\\system32\\cmd.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\OpenDOSBox\Command]
@="CMD.EXE /K CD %1"




[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]
@="服務(&V)"
"SuppressionPolicy"=dword:4000003c
"Icon"="%windir%\\system32\\filemgmt.dll"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00



[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\控制面板]
@="控制台(&C)"
"Icon"="%SystemRoot%\\system32\\SHELL32.dll,21.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\控制面板\command]
@="rundll32.exe shell32.dll,Control_RunDLL"


我用 Win7 試了一下,可以新增 "以Chrome開啟" 這項目來開啟所需的檔


==========================================================
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\以Chrome開啟\Command]
@="C:\\Users\\Username\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"
power1912 wrote:
我用 Win7 試了...(恕刪)

可那只能對檔案以Chromium開啟...
無法對網頁捷徑(如最上圖) 以Chromium開啟...





Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\以Google Chromium開啟]
@="以Google Chromium開啟..."

[HKEY_CLASSES_ROOT\*\shell\以Google Chromium開啟\command]
@="D:\\aaa\\bbb\\Google Chromium\\chrome.exe --user-data-dir=Z:\\temp\\Chromium\\User Data %1"


  試了一下它無視 --user-data-dir=Z:\\temp\\Chromium\\User Data 的存在 = ="

我是使用xp,但是原理應該差不多吧。
我這樣做之後連結都是在我存設定檔的地方。
這方法是從ptt "readper"大大在browsers版po的文章中學來的

HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command
HKEY_CLASSES_ROOT\ftp\shell\open\command
HKEY_CLASSES_ROOT\http\shell\open\command HKEY_CLASSES_ROOT\https\shell\open\command


在以上四個路徑右邊預設值改成你需要的如:
D:\......\chrome.exe" --user-data-dir=Z:\temp\Chromium\User Data "%1"

以下是我的例子:
"C:\Documents and Settings\Ivan\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --purge-memory-button --user-data-dir=R:\TEMP\chrome "%1"

這樣改完後連結都是從我的設定檔開,不會從預設值開,所以也不用自訂右鍵選單功能。
希望有幫到你的忙。
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!