$phinX Posted July 21, 2006 Share Posted July 21, 2006 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! Link to comment https://www.neowin.net/forum/topic/480752-c-how-to-get-the-applications-name/ Share on other sites More sharing options...
0 KayMan2K Posted July 21, 2006 Share Posted July 21, 2006 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); Link to comment https://www.neowin.net/forum/topic/480752-c-how-to-get-the-applications-name/#findComment-587722363 Share on other sites More sharing options...
0 $phinX Posted July 21, 2006 Author Share Posted July 21, 2006 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. Link to comment https://www.neowin.net/forum/topic/480752-c-how-to-get-the-applications-name/#findComment-587722441 Share on other sites More sharing options...
0 Stebet Posted July 21, 2006 Share Posted July 21, 2006 System.AppDomain.CurrentDomain or System.Reflection.Assembly.GetExecutingAssembly() These might help you with what you are trying to do :) Link to comment https://www.neowin.net/forum/topic/480752-c-how-to-get-the-applications-name/#findComment-587722453 Share on other sites More sharing options...
Question
$phinX
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!
Link to comment
https://www.neowin.net/forum/topic/480752-c-how-to-get-the-applications-name/Share on other sites
3 answers to this question
Recommended Posts