File Association: how do I get the filename passed to my App
Posted: Mon Jul 29, 2013 1:36 pm
Hello
As best I can tell from the running app, the name of the file selected in Explorer and which opened my application, was not passed into it. I went back to my File Associtations definition in the Project tab, and edited my entry. I selected the Shell Verbs tab to see what it offered, and I think this is where I need to define something so that the name of the selected file will get passed to my app, as though it had been typed into a command line invocation (e.g myapp.exe c:\filename.xyz).
I have added 'Open' as the verb, but I have no idea how to define the parameter so that it becomes the name of the selected file. The F1 help, doesn't really, as all it says is "Enter the command line parameters to be passed to the application associated with this file type for the current verb." The required parameter is not fixed. I was hoping Help would tell me how to indicate that the selected file name would be passed.
Regards, John
As best I can tell from the running app, the name of the file selected in Explorer and which opened my application, was not passed into it. I went back to my File Associtations definition in the Project tab, and edited my entry. I selected the Shell Verbs tab to see what it offered, and I think this is where I need to define something so that the name of the selected file will get passed to my app, as though it had been typed into a command line invocation (e.g myapp.exe c:\filename.xyz).
I have added 'Open' as the verb, but I have no idea how to define the parameter so that it becomes the name of the selected file. The F1 help, doesn't really, as all it says is "Enter the command line parameters to be passed to the application associated with this file type for the current verb." The required parameter is not fixed. I was hoping Help would tell me how to indicate that the selected file name would be passed.
Regards, John