以下是我添加自定义shell条目的方法:
Windows Registry Editor Version 5.00
; Shows "Open ConsoleZ Here" when right clicking a directory
[HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ]
@="Open ConsoleZ Here"
[HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe"
; Shows "Open ConsoleZ Here" when right clicking a file
[HKEY_CLASSES_ROOT\*\shell\ConsoleZ]
@="Open ConsoleZ Here"
[HKEY_CLASSES_ROOT\*\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe"
; Shows "Open ConsoleZ Here" when right clicking desktop or background
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ]
@="Open ConsoleZ Here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe"
我应该如何修改它以使我的自定义shell条目旁边出现一个图标?
答案 0 :(得分:1)
我再次尝试了here发布的答案,但它确实奏效了。为了繁荣:
Windows Registry Editor Version 5.00
; Shows "Open ConsoleZ Here" when right clicking a directory
[-HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ]
[HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ]
@="Open ConsoleZ Here"
"Icon"="C:\\Program Files\\ConsoleZ\\Console.exe"
"Position"="Top"
[-HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ\command]
[HKEY_CLASSES_ROOT\Directory\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe -d \"%V\""
; Shows "Open ConsoleZ Here" when right clicking a file that is not executable
[-HKEY_CLASSES_ROOT\*\shell\ConsoleZ]
[HKEY_CLASSES_ROOT\*\shell\ConsoleZ]
@="Open ConsoleZ Here"
"Icon"="C:\\Program Files\\ConsoleZ\\Console.exe"
"Position"="Top"
[-HKEY_CLASSES_ROOT\*\shell\ConsoleZ\command]
[HKEY_CLASSES_ROOT\*\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe -d \"%W\""
; Shows "Open ConsoleZ Here" when right clicking desktop or background
[-HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ]
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ]
@="Open ConsoleZ Here"
"Icon"="C:\\Program Files\\ConsoleZ\\Console.exe"
"Position"="Top"
[-HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ\command]
[HKEY_CLASSES_ROOT\Directory\Background\shell\ConsoleZ\command]
@="C:\\Program Files\\ConsoleZ\\Console.exe"