how can I get the path of a context menu selection?

0 votes
asked May 14, 2009 by geo

I have a custom entry on the Internet Explorer's context menu. I would like to do something with the selected item, for example, run a program that receives that selection as ARGV[1].

For example, if I right click on a file named that is located on my desktop, the following thing should run : my_binary path\to\desktop\

1 Answer

0 votes
answered May 14, 2009 by zanoni

You need change YOUR_BINARY and the filetype to do something:

Create a file called RegisterYourBinary.reg with the content:




@="YOUR_BINARY \"%1\""
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter