如何获取程序当前目录

System.IO.Path.GetDirectoryName(Application.ExecutablePath)
原文地址:https://www.cnblogs.com/habin/p/1098970.html