Shell context menu and multiple files
-
hi, i'm working on an application which i want to be invoked through an option in the shell context menu when clicking on files. i have found the registry keys to edit and got it working with single files. however, when i highlight multiple files and then click the option another instance of the application is started for each file. what i want to do execute one program for all the files selected, passing each path as a seperate argument. any ideas on how to do this by editing registry keys? thanks
-
hi, i'm working on an application which i want to be invoked through an option in the shell context menu when clicking on files. i have found the registry keys to edit and got it working with single files. however, when i highlight multiple files and then click the option another instance of the application is started for each file. what i want to do execute one program for all the files selected, passing each path as a seperate argument. any ideas on how to do this by editing registry keys? thanks
There is no way to do that by editing registry keys. Your application has to be updated to expose a method whereby one instance of your app tells the first instance that it should look at a new file. Read this[^] and this[^].
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...