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.
 

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