using System;
using System.Collections.Generic;
using System.Text;
namespace MyConAPP
{
class Program
{
static void Main(string[] args)
{
string strFullAppName = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
if (strFullAppName.ToLower().IndexOf("file:///") >= 0)
{
strFullAppName = strFullAppName.Substring(8, strFullAppName.Length - 8);
}
string strAppPath = System.IO.Path.GetDirectoryName(strFullAppName);
Console.WriteLine(strAppPath);
}
}
}