1、string strPath = AppDomain.CurrentDomain.BaseDirectory;
2、string filePath = Application.StartupPath;