Winforms:
string strPath = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName + "sendMailFile.txt";