Joakim Joakim - 1 year ago 83
C# Question

How do I get the name of the current executable in C#?

I want to get the name of the currently running program, that is the executable name of the program. In C/C++ you get it from args[0].

Answer Source
System.AppDomain.CurrentDomain.FriendlyName