How to find the main EXE name

  • Thread starter Thread starter Justin
  • Start date Start date
J

Justin

I have a vb.net windows application. Within this application I have several
class libraries.
How can I know the name of the main EXE filename programmatically?

Thanks for any help.

J Justin
 
One approach is to start with a type in that file:

typeof(MyClass).Module.FullyQualifiedName
 
Justin said:
I have a vb.net windows application. Within this application I have several
class libraries.
How can I know the name of the main EXE filename programmatically?

Use Application.ExecutablePath.

Niki
 
That's what I said. You run this with a "type in that file", meaning MyClass
would be a member in the executing assembly.
 
Back
Top