Associated File Type

  • Thread starter Thread starter Devlei
  • Start date Start date
D

Devlei

I have a file extension that is associated to my application. Opening
a file with that extension starts my application OK, but how do I get
it to start with that selected file open?

With thanks
Dave
 
I have a file extension that is associated to my application. Opening
a file with that extension starts my application OK, but how do I get
it to start with that selected file open?

If the file association is set up correctly the file name will be
passed on the command line. Use a parameterized Main method

Shared Sub Main(ByVal CmdArgs As String())

or call System.Environment.GetCommandLineArgs to retrieve the file
path.


Mattias
 
Thank you Mattias
You have set me off in the right direction

Best regards
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top