beta.blog

C# – Get FileName of Current Executable

by on Feb.29, 2012, under Programming

This is how to get the filename of your executable-file in C-Sharp:

System.AppDomain.CurrentDomain.FriendlyName

It’s a String and you can print it like this:

Console.WriteLine(System.AppDomain.CurrentDomain.FriendlyName);

Leave a Reply

*

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!