I wrote an application to take a file path (a file with a custom extension) as an argument, and then do some processing on it.
The idea is that I could associate (using Windows functionality) a user file with my executable application that I am installing (through the installer of the installation screen).
I would like to be able to double-click my file using a custom extension and transfer it to an executable file for processing.
However, the behavior that I get is as follows:
- If I double-clicked my file (with user extension), it does nothing.
- If I drag and drop the file into my executable program, it will work as expected.
So is it possible to make this work by simply double-clicking on my user file?
I think windows are trying to open a user file using an executable file, which may not match the passing it as an argument ?!
Any help was appreciated.
thanks KS
source share