Open files with shell context menu

  • Thread starter Thread starter Johan
  • Start date Start date
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
 
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.
 
Back
Top