Archived

This topic is now archived and is closed to further replies.

[C#] How to get the Application's name

Recommended Posts

$phinX    0

How do i retrieve the application's name?

Isnt it something like App.ApplicationName or something? I cant remember and cant find it on the net!

Share this post


Link to post
Share on other sites
KayMan2K    1

Product name of the 'EXE' (not! necessary the name of the 'EXE' file), as seen in Explorer's property window:

 Application.ProductName;

Name of the 'EXE' file:

 Path.GetFileName(Application.ExecutablePath);

Share this post


Link to post
Share on other sites
$phinX    0

That needs the System.Windows.Forms namespace. Can it be done another way? Im trying to do this inside a class method... not on a windows form.

Share this post


Link to post
Share on other sites
Stebet    10

System.AppDomain.CurrentDomain

or

System.Reflection.Assembly.GetExecutingAssembly()

These might help you with what you are trying to do :)

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.