C# 绝对路径改成相对路径

string reportPath=Application.StartupPath.Substring(0,Application.StartupPath.Substring(0,Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"));
reportPath+=@"\文件名";
posted @ 2011-04-21 18:44  Sue_娜  阅读(1670)  评论(0编辑  收藏  举报