Open files with shell context menu

J

Johan

I'm trying to send files from the shell context menu to my application.
To do this I have added a registry key like this:

"hkey_classes_root\*\shell\Open\Default" = "C:\my_program.exe" "%1"

Now, this works for one file but if I try to send multiple files, then
multiple instances of my application are opened.

Does anyone know how I can send a list of files to my application by the
shell context meny?

Thanks,

/Johan
 
D

David Candy

Make your program into a DDE server. See how explorer opens a folder. Note default is unused (except to start the app if it's not already started and another way isn't specified in the DDE setting). DDE settings are under that key.
 

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