2 questions about windows context menus

1)
I know how to add items to context menus for various file types in Windows by editing the appropriate registry entries under the ROOT hive. What I would like to do, however, is group items under a folder or whatever you call it. I want it so when you right click over a txt file, for example, there is an option that is called "custom action" and when you hover over it it expands with a new menu with various commands. Basically, I want something liek the WinZip context menu.

I realize that the WinZip context menu is done by creating a context menu handler using a COM object compiled to a DLL. Is there any way to do this besides creating a DLL?

2)
If I have created custom file types/extensions with more than 4 character extensions it seems that I can't add context menu options the regular way via editing the registry. Even if I add something under the Shell\open\command key nothing happens. Is this a problem due to having a 7 character extension? Maybe windows has a limit on file extension lengths?

Thanks.
[1061 byte] By [robd] at [2007-11-19 5:36:21]
# 1 Re: 2 questions about windows context menus
Hello Robd.

1)
I am currently developing a context menu COM extension that permits to create submenus in context menus, but also to put images + a contextual text and can handle multiple files. It also extends the notion of file class with super classes.

I am very happy to see that it can interest someone.
I can send it to you by email when the devlopment will be finished.

2)
I currently uses Windows 98, and it actually works well with long extensions (i have just tested it)
Maybe you have done an error in registring the extension.
Test this file on your computer :

REGEDIT4

[HKEY_CLASSES_ROOT\.dummy]
@="DummyFile"
[HKEY_CLASSES_ROOT\DummyFile\Shell\Open\Command]
@="notepad.exe %1 %*"

Do not forgot to put a carriage-return at the end of the file!
I just have done this error!

Now create a file with a .dummy extension and double click on it.
It must be opened with notepad.exe!
It works on my computer at least!

I hope it can help you.
SuperKoko at 2007-11-10 3:40:35 >