Joakim Joakim - 13 days ago 6
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
System.AppDomain.CurrentDomain.FriendlyName
Comments