要注意,不能用Environment.CurrentDirectory,而需要用AppDomain.CurrentDomain.BaseDirectory 转载于:https://www.cnblogs.com/chenxizhang/archive/2009/12/17/1626729.html