【问题标题】:How to make icon appear next to window custom shell entry?如何使图标出现在窗口自定义外壳条目旁边?
【发布时间】:2014-06-08 18:30:08
【问题描述】:

这是我为添加自定义 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 条目旁边出现一个图标?

我已经尝试了herehere 列出的建议,但没有成功。

【问题讨论】:

标签: windows shell registry


【解决方案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"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-10-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-27
    • 2016-02-24
    • 2015-07-15
    • 1970-01-01
    相关资源
    最近更新 更多