I wrote an application to accept a filepath (file with custom extension) as an argument and then do some processing on it.
The idea being that I could associate (using windows functionality) the custom file with my executable app that I install (via install shield installer).
I would like to be able to double-click my file with the custom extension and have it passed to my executable for processing.
However, the behaviour I get is this:
- if I double click my file (with the custom extension) it does nothing.
- if I drag and drop the file on to my executable program then it works as expected.
So is it possible to get this to work by simply double-clicking my custom file?
I guess windows is attempting to open the custom file using the executable which maybe is not the same as passing it in as an argument?!
Any help appreciated.
thanks, KS
"%1"
, but your description is insufficient for me to tell. – Devine