.NET : 如何在Windows Service中获取到当前工作目录

要注意,不能用Environment.CurrentDirectory,而需要用AppDomain.CurrentDomain.BaseDirectory

image

posted @ 2009-12-17 22:22  陈希章  阅读(541)  评论(0编辑  收藏  举报