Connecting Tech Pros Worldwide Forums | Help | Site Map

the code behind opening a file by double clicking it.

Member
 
Join Date: May 2007
Posts: 52
#1: Jun 15 '07
I have created an exe in Vb.net which displays a message" Hello world" in a messagebox.
and associated this exe with a new file type " .key " of my own(by adding this file type in folder option ..file types.)

so when i save a text file as " xyz.key " then a new fil is created with extension .key

now when i double click this xyz file my hello world exe gets executed and displays the message.

I want to display "the name of file with path" after clicking which the. exe got executed ,also in themessagebox. so how can I know from my exe which textfile (saved as .key)executed it..

Member
 
Join Date: May 2007
Posts: 52
#2: Jun 20 '07

re: the code behind opening a file by double clicking it.


anyone having any idea...??????
Reply