Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a submenu in the explorer-shell-extention?

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

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

and so on.

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?

like image 251
user1369594 Avatar asked Aug 13 '12 11:08

user1369594


People also ask

What is Explorer shell extension?

This application adds a new column to Windows Explorer which shows the version of . rvt and . rfa files. It displays embedded preview images in Explorer's icon views (Large Icons, Content, etc). Also, it adds new pages to the Windows Explorer Properties Window to display the details of Autodesk® Revit® files.

How do I add to Explorer context menu?

Right-click (or select and hold) on a file or folder to open the context menu. Select Show more options.

What is shell context menu?

Shell Context Menus are Shell Extensions that add to the context menu opened when the user right clicks on a Shell Item. A Shell Item might be a file, folder, drive, network share or so on. Shell Context Menus are fully supported in SharpShell.

What is context menu handlers?

Shortcut menu handlers, also known as context menu handlers or verb handlers, are a type of file type handler. These handlers may be impelmented in a way that causes them to load in their own process or in the explorer, or other 3rd party processes.


1 Answers

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\""
; __________________________________________________________________________ >
like image 153
inovasyon Avatar answered Sep 30 '22 12:09

inovasyon