我创建了一个更改文件名的小脚本(用_
替换空格等)。我用参数控制这个脚本。
现在我想将它包含在我的explorer-shell-extention中,所以我尝试添加以下注册表项:
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
等等。
它工作正常,但我想将所有这些方法打包成一个子菜单。 有点像“开放式”选项。这可能吗?
答案 0 :(得分:2)
您可以对其进行编辑以扩展您的需求。
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\""
; __________________________________________________________________________ >