Open my app from an associated file

D

Doug Bell

Hi,
Recently I asked how to write code to open an App from its associated file.
I got assistance from Ken show me the Process.Start command.

I would now like to start the App that I have built from its associated file
type.

Could someone advise me on how I make my App aware of the specific
(associated) file that has started it.

Thanks

Doug
 
H

Herfried K. Wagner [MVP]

Doug Bell said:
Recently I asked how to write code to open an App from its associated
file.
I got assistance from Ken show me the Process.Start command.

I would now like to start the App that I have built from its associated
file
type.

Could someone advise me on how I make my App aware of the specific
(associated) file that has started it.

\\\
Public Module Program
Public Function Main(ByVal Args() As String) As Integer
For Each Arg As String In Args
MsgBox(Arg)
Next Arg
Application.Run(...)
End Function
End Module
///

Select 'Sub Main' as startup object in the project properties.
 

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

Top