Open several custom extension files selected in single application

K

Karthik.R

Hi Techies,


During my application installation I am setting registry entry to open our
custom file extension ".tes" in our application "testapp.exe"

..tes <Default> REG_SZ teststart

teststart
Shell
Open
Command <Default> REG_SZ
"C:\\test\testapp.exe" "%1"




When several files of ".tes" are selected and clicked open, this tries to
open each file in each instance of our application. I would like all to open
in a single application. How can I achieve this by adding registry entry.
Please tell me the complete procedure. Should this be used as
"REG_MULTI_SZ"??


Regards,
Karthik.
 
M

Mark V

In said:
Hi Techies,


During my application installation I am setting registry entry
to open our custom file extension ".tes" in our application
"testapp.exe"

.tes <Default> REG_SZ
teststart

teststart
Shell
Open
Command <Default> REG_SZ
"C:\\test\testapp.exe" "%1"

You can try using "%*" instead of %1 (the first delimited argument
passed) but that may not work. The application expects and handles
what from the commandline? If it cannot accept multiple fully
qualified paths or dbl-quoted fully qualified paths, then the
application needs to be modified.
When several files of ".tes" are selected and clicked open, this
tries to open each file in each instance of our application. I
would like all to open in a single application. How can I
achieve this by adding registry entry. Please tell me the
complete procedure. Should this be used as "REG_MULTI_SZ"??

No, REG_MULTI_SZ does not appear to be any solution.

What happens if you, (all one line) specify multiple fully
qualified paths to your application from a CMD session? I will
guess your app only "sees" the first one. Many unknowns from here
but perhaps that will help you pin down the problem.
 

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