在explorer-shell-extension中创建子菜单? [英] Creating a submenu in the explorer-shell-extention?

查看:193
本文介绍了在explorer-shell-extension中创建子菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个小的脚本,用于更改文件名(用_等代替空格).我正在使用参数控制此脚本.

I created a small script that changes a filename (replacing spaces with _, etc.). I'm controlling this script with parameters.

现在,我想将其包含在我的explorer-shell-extension中,因此我尝试添加以下注册表项:

Now I'd like to include that into my explorer-shell-extention, so I tried to add the following registry entries:

HKEY_CLASSES_ROOT\*\shell\edit filname method a\command
HKEY_CLASSES_ROOT\*\shell\edit filname method b\command
HKEY_CLASSES_ROOT\*\shell\edit filname method c\command

以此类推.

它工作正常,但我想将所有这些方法打包到一个子菜单中. 有点像打开方式"选项.有可能吗?

It's working fine but I'd like to pack all those methods together into a submenu. Kinda like the "open with" option. Is that possible?

推荐答案

您可以对其进行编辑以扩展您的需求.

You can just edit this to expand your needs.

Windows Registry Editor Version 5.00

;           TOOLS MENU

            [HKEY_CLASSES_ROOT\*\shell\contexttools_anchor]
                "MUIVerb"="SendTo Tools"
                "Icon"="...YOUR PATH...\\files\\Tools.ico"
            "ExtendedSubCommandsKey"="*\\ContextMenus\\contexttools"
                ; "Extended"=""
; __________________________________________________________________________ >

    [HKEY_CLASSES_ROOT\*\ContextMenus\contexttools\Shell\001cmd]
        "MUIVerb"="Notepad 2"
        "Icon"="...YOUR PATH...\\Tools\\app1.exe"

            [HKEY_CLASSES_ROOT\*\ContextMenus\contexttools\Shell\001cmd\command]
                @="...YOUR PATH...\\Tools\\app1.exe \"%1\""
; __________________________________________________________________________ >
[HKEY_CLASSES_ROOT\*\ContextMenus\contexttools\Shell\005seperator]
"CommandFlags"=dword:00000008
; __________________________________________________________________________ >

    [HKEY_CLASSES_ROOT\*\ContextMenus\contexttools\Shell\006cmd]
        "MUIVerb"="Hash Compare"
        "Icon"="...YOUR PATH...\\Tools\\app2.exe"

            [HKEY_CLASSES_ROOT\*\ContextMenus\contexttools\Shell\006cmd\command]
                @="...YOUR PATH...\\Tools\\app2.exe \"%1\""
; __________________________________________________________________________ >

这篇关于在explorer-shell-extension中创建子菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆