Alex Rivera | Logout

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

Asked 2009-03-05T21:00:07.080
430

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].

Edit
Report

1 Answer

469
System.AppDomain.CurrentDomain.FriendlyName
answered 2009-03-05T21:33:15.393

Your Answer