Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 :)

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...