I have an app that needs to open multiple files.
When I set it as the default app for a file type, and select a single file (Windows) the Args array correctly passes the filename.
BUT when I select multiple files it starts multiple instances (one for each file selected) rather than passing the two (or more) filenames to the Args array of a single instance.
I use launch4J to create the .exe file. One of the options is to allow only a single instance. When I do that, only one instance opens, but with only the first filename selected.
How do I pass multiple selected filenames to a single instance of the application rather than having multiple instances open?
When I set it as the default app for a file type, and select a single file (Windows) the Args array correctly passes the filename.
BUT when I select multiple files it starts multiple instances (one for each file selected) rather than passing the two (or more) filenames to the Args array of a single instance.
I use launch4J to create the .exe file. One of the options is to allow only a single instance. When I do that, only one instance opens, but with only the first filename selected.
How do I pass multiple selected filenames to a single instance of the application rather than having multiple instances open?