How can I create a sub menu in windows right-click menu using the handlers? I already know how to create an action menu item, but im not clear on how to create a menu with this action item inside of it. In my case i'd like to create a submenu that is called John and have this action inside of it like the image shows.
To clarify: How do i create a subMenu called John and place my action inside of that menu?
static void create_menu()
{
RegistryKey key;
key = Registry.ClassesRoot.CreateSubKey(@"AllFileSystemObjects\shell\MyAction");
key = Registry.ClassesRoot.CreateSubKey(@"AllFileSystemObjects\shell\MyAction\command");
key.SetValue("", @"C:\Users\john\Desktop\simple.bat %1");
key.Close();
}
