[winform의 경우]
1) Application.StartupPath 를 사용
2) string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
path = System.IO.Path.GetDirectoryName(path);
3. AppDomain.CurrentDomain.BaseDirectory
Another one : https://alias007.tistory.com/338
-- Web
1. HttpContext.Current.Request.PhysicalApplicationPath
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath
AppDomain.CurrentDomain.BaseDirectory
-- Win
using System.IO;
string strPath = Path.Combine(path.GetDirectoryName(Application.ExecutablePath), "파일명.확장자");