I have never used the right-click menu, but I believe that thats how windows is doing it because there cant be any other way!
Anyway, I believe that windows passes as a parametr the full path & the filename of the file to your program.
So, put
code:
MsgBox Command$
in your Form_Load sub, and see what parametr is passed to your program.
By doing this, I guess that you will understand what you have to do
Beware in quotin marks!
I think Windows put quoting marks at the beggining and the ending if the path or filename have spaces.
So be sure to handle the filename with and without quotes
many typos in the post