Windows 右鍵添加程式

右鍵分成兩種,桌面和檔案,二種都需要修改機碼。

桌面的右鍵機碼到下列路徑修改

HKEY_CLASSES_ROOT\Directory\Background\shell

以notepad為例

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\notepad]
@=”notepad “
“Icon”=”C:\\windows\\notepad.exe”

[HKEY_CLASSES_ROOT\Directory\Background\shell\notepad\command]
@=”C:\\windows\\notepad.exe”

檔案的右鍵機碼修改路徑

HKEY_CLASSES_ROOT\*\shell

以notepad為例

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\notepad]
@=”notepad”
“Icon”=”C:\\windows\\notepad.exe”

[HKEY_CLASSES_ROOT\*\shell\notepad\command]
@=”C:\\windows\\notepad.exe %1″