path of current executable?

  • Thread starter Thread starter Developer
  • Start date Start date
More specifically, I want to get version information from the current .exe
to display in my About box....
TIA.
 
If it's a normal Windows Application, you can use the
Application.ProductVersion. (System.Windows.Forms.Application)
Application.ExecutablePath will give you the exact path including the
executable name.

Trevor
 
System.Reflection.AssemblyName an =
System.Reflection.Assembly.GetExecutingAssembly().GetName();

an.Version has all the info I'm looking for.
 
Back
Top