Groups | Blog | Home
all groups > dotnet framework > december 2004 >

dotnet framework : path of current executable?


Developer
12/30/2004 8:06:05 PM
Hello,
How do I get the path of my executable when it is running?
Thanks.

Developer
12/30/2004 8:12:19 PM
More specifically, I want to get version information from the current .exe
to display in my About box....
TIA.

[quoted text, click to view]

Trevor Braun
12/30/2004 8:30:56 PM
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

[quoted text, click to view]

Developer
1/4/2005 1:41:23 PM
System.Reflection.AssemblyName an =
System.Reflection.Assembly.GetExecutingAssembly().GetName();

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


[quoted text, click to view]

AddThis Social Bookmark Button