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\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
 
M

Michael Nemtsev

Hello Johan,

This question is more appropriate for microsoft.public.windowsxp.* groups,
not here

J> I'm trying to send files from the shell context menu to my
J> application. To do this I have added a registry key like this:
J>
J> "hkey_classes_root\*\shell\Default" = "C:\my_program.exe" "%1"
J>
J> Now, this works for one file but if I try to send multiple files,
J> then multiple instances of my application are opened.
J>
J> Does anyone know how I can send a list of files to my application by
J> the shell context meny?
J>
J> Thanks,
J>
J> /Johan
J>
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 

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