如何修改 Win10 注册表,以根据特定文件类型在上下文菜单中提供程序调用?

How can I modify the Win10 registry, to offer a program call in the context menu, depending on a certain file type?

我有一个关于 Windows10 注册表的问题。我们都知道右键单击文件时打开的上下文菜单。在下面的示例中,我们将了解如何使用注册表中的条目通过右键单击任何文件来提供程序调用。 image shows the win10 regEdit

我的问题是,如何限制对特定文件类型的调用?例如,如果我对 *.png 文件执行相同操作,则它不起作用。 image shows the win10 regEdit with another example

对于我的错误所在的想法和提示,我将不胜感激。

我想我找到了解决办法。 使用以下条目似乎对我有用:

HKEY_CLASSES_ROOT\SystemFileAssociations\.specificFileType\shell\MyName\command