Jay1b Posted February 11, 2005 Posted February 11, 2005 Could someone please give me a few pointers please? I am trying to write a simple program to work from the right click in Explorer. So i highlight a single file, right click upon it and a new option will be on the menu. This option will then launch my program. What i would like to know is: - How can i add an option into the rightclick menu in explorer? - How can i get my program to read what file is currently highlighted in explorer? Thanks in advance :) Quote
IngisKahn Posted February 12, 2005 Posted February 12, 2005 The answer lies in te regisitry. I'd do a web search for the specifics. Quote "Who is John Galt?"
Wraith Posted February 12, 2005 Posted February 12, 2005 Could someone please give me a few pointers please? I am trying to write a simple program to work from the right click in Explorer. So i highlight a single file, right click upon it and a new option will be on the menu. This option will then launch my program. What i would like to know is: - How can i add an option into the rightclick menu in explorer? - How can i get my program to read what file is currently highlighted in explorer? Thanks in advance :) You can add very simple commands through the registry and creating new verbs. To do anythign complicated thoug you need to use an IContextMenu implementing shell extension com class. Read the MSDN pages about context menu handlers and get ready for some interop. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/contextmenuhandlers.asp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.