How to get selected Open With file & path sent to program
Posted: Fri Sep 16, 2022 11:33 pm
For Example:
When I use Windows Explorer to select an rtf file, it automatically opens that selected file in the default rtf running program.
When I use Windows Explorer to select an rtf file, and select Open With, it lets me select an alternate program to open that rtf file, and then opens it in that program.
What I wanted to be able to do, like it is processed above. Is to use Windows Explorer to select a file, and then use 'Open With' to send that selected file to be processed by my PB program. I can easily create the "Open With" part via registry, or by selecting that program through the open With Selection, and both run my PB program fine.
But the selected file name is not transfered to my program to be processed, like it is with the previous examples.
It just runs my program.
How would I be able to get the selected file name and path to be sent to my PB program to be processed?
I appreciate any help and ideas on how to do this.
Thanks
When I use Windows Explorer to select an rtf file, it automatically opens that selected file in the default rtf running program.
When I use Windows Explorer to select an rtf file, and select Open With, it lets me select an alternate program to open that rtf file, and then opens it in that program.
What I wanted to be able to do, like it is processed above. Is to use Windows Explorer to select a file, and then use 'Open With' to send that selected file to be processed by my PB program. I can easily create the "Open With" part via registry, or by selecting that program through the open With Selection, and both run my PB program fine.
But the selected file name is not transfered to my program to be processed, like it is with the previous examples.
It just runs my program.
How would I be able to get the selected file name and path to be sent to my PB program to be processed?
I appreciate any help and ideas on how to do this.
Thanks