Creating a submenu in the explorer-shell extension?

I created a small script that changes the file name (replacing spaces with _ , etc.). I control this script parameters.

Now I would like to include this in the explorer-shell-extention extension, 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 

etc.

It works fine, but I would like to put all these methods together in a submenu. Kinda, as an option to "open with." Is it possible?

+6
source share
1 answer

You can simply change 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\"" ; __________________________________________________________________________ > 
+2
source

Source: https://habr.com/ru/post/922716/


All Articles