How do I find the current executable filename? [duplicate]

System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName

Leave a Comment