c# get path application code example
Example 1: get application path c#
System.Reflection.Assembly.GetExecutingAssembly().Location
Example 2: get program path c#
using System;
class Program
{
static void Main(string[] args)
{
string path;
path = AppDomain.CurrentDomain.BaseDirectory;
}
}