Your Ad Here

Posted By

jimfred on 09/04/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
khouser


C#, Get application name


 / Published in: C#
 

URL: http://www.neowin.net/forum/index.php?showtopic=480752

  1. Application.ProductName; // Product name of the 'EXE' (not! necessary the name of the 'EXE' file), as seen in Explorer's property window
  2.  
  3. Path.GetFileName(Application.ExecutablePath); // Name of the 'EXE' file
  4.  
  5. System.Reflection.Assembly.GetExecutingAssembly(); // Non-forms-based

Report this snippet  

You need to login to post a comment.