获取当前程序运行目录 以前用过几种,但是都没有总结。今天又看到了一种,先写下来,以后慢慢加吧! string str1= System.AppDomain.CurrentDomain.BaseDirectory.ToString();