Add menu to Explorer Context Menu

D

Doug Bell

Hi,

I would like to add a Menu Item to the Explorer Context Menu so that when
the User Right Clicks on a File, they are given a choice to launch my
application with the selected file passed as a command line argument.

Can someone point me to some information on how to set that up? Hopefully as
part of the installation?

Thanks

Doug
 
H

Herfried K. Wagner [MVP]

Doug Bell said:
I would like to add a Menu Item to the Explorer Context Menu so that when
the User Right Clicks on a File, they are given a choice to launch my
application with the selected file passed as a command line argument.

Check out the keys for other file types in the 'HKEY_CLASSES_ROOT' registry
key. For more complex scenarios, you may want to take a look at the sample
below:

<URL:http://mvps.org/emorcillo/en/code/shell/shellextensions.shtml>
-> "ContextMenuHandlerBase"
 
D

Doug Bell

I am still in the dark.
I want to have the Windows Explorer Context Menu to include a shortcut to
start my App with the selected file.

As you advised, I am sure it is in HKEY_CLASSES_ROOT\* but I am not sure
what Keys to set and can't find out how to get the Deployment Project set a
Key correctly. I keep ending up with 2 (Default) keys and then some other
associations (like SLN Files) stop working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top