c# 取当前运行程序目录的方法 1、string strPath = AppDomain.CurrentDomain.BaseDirectory; 2、string filePath = Application.StartupPath;