csharp get executable path

Code Example - csharp get executable path

                
                        //This path contains the .exe file
System.Reflection.Assembly.GetEntryAssembly().Location;