D Developer Dec 31, 2004 #1 Hello, How do I get the path of my executable when it is running? Thanks.
D Developer Dec 31, 2004 #2 More specifically, I want to get version information from the current .exe to display in my About box.... TIA.
More specifically, I want to get version information from the current .exe to display in my About box.... TIA.
T Trevor Braun Dec 31, 2004 #3 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
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
D Developer Jan 4, 2005 #4 System.Reflection.AssemblyName an = System.Reflection.Assembly.GetExecutingAssembly().GetName(); an.Version has all the info I'm looking for.
System.Reflection.AssemblyName an = System.Reflection.Assembly.GetExecutingAssembly().GetName(); an.Version has all the info I'm looking for.